diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index 101e94cdc..32549a873 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -71,6 +71,7 @@ class Registration extends React.Component { mode: 0, region_schools: [], admin: false, + typeysl: 0, } } @@ -291,7 +292,8 @@ class Registration extends React.Component { try { if (result.data.my_teams.length === 0) { this.setState({ - type: 1, + type: 6, + typeysl: 1, data: result.data.my_teams, count: result.data.count, competition_teams: result.data.competition_teams, @@ -303,6 +305,7 @@ class Registration extends React.Component { } else { this.setState({ type: 6, + typeysl: 0, data: result.data.my_teams, count: result.data.count, competition_teams: result.data.competition_teams, @@ -314,7 +317,8 @@ class Registration extends React.Component { } } catch (e) { this.setState({ - type: 1, + type: 6, + typeysl: 1, data: result.data.my_teams, count: result.data.count, competition_teams: result.data.competition_teams, @@ -855,7 +859,7 @@ class Registration extends React.Component { render() { - const {page, admin, mode, pages, limit, type, tmodalsType, tmodalsTypes, data, count, competition_teams, Newtit, itemiddata, messagePerbool, messageexitol, GetenrollmentAPI, loadingstate, pint, competition_name, mutiple_limited, teamutiple_limited, members_count} = this.state; + const {page, admin, typeysl, mode, pages, limit, type, tmodalsType, tmodalsTypes, data, count, competition_teams, Newtit, itemiddata, messagePerbool, messageexitol, GetenrollmentAPI, loadingstate, pint, competition_name, mutiple_limited, teamutiple_limited, members_count} = this.state; return (
@@ -957,7 +961,7 @@ class Registration extends React.Component {
: ""} { - type === 1 ? + type === 1 || typeysl === 1 ? : ""