diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index 32549a873..19ecb191a 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -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,