|
|
|
@ -290,11 +290,11 @@ class Registration extends React.Component {
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
try {
|
|
|
|
|
if (result.data.my_teams.length === 0) {
|
|
|
|
|
if (result.data.competition_teams.length === 0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
type: 6,
|
|
|
|
|
typeysl: 1,
|
|
|
|
|
data: result.data.my_teams,
|
|
|
|
|
data: result.data.competition_teams,
|
|
|
|
|
count: result.data.count,
|
|
|
|
|
competition_teams: result.data.competition_teams,
|
|
|
|
|
personal: result.data.personal,
|
|
|
|
@ -306,7 +306,7 @@ class Registration extends React.Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
type: 6,
|
|
|
|
|
typeysl: 0,
|
|
|
|
|
data: result.data.my_teams,
|
|
|
|
|
data: result.data.competition_teams,
|
|
|
|
|
count: result.data.count,
|
|
|
|
|
competition_teams: result.data.competition_teams,
|
|
|
|
|
personal: result.data.personal,
|
|
|
|
@ -319,7 +319,7 @@ class Registration extends React.Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
type: 6,
|
|
|
|
|
typeysl: 1,
|
|
|
|
|
data: result.data.my_teams,
|
|
|
|
|
data: result.data.competition_teams,
|
|
|
|
|
count: result.data.count,
|
|
|
|
|
competition_teams: result.data.competition_teams,
|
|
|
|
|
personal: result.data.personal,
|
|
|
|
|