From 057f7fe2a83476dcdc3819b9580bb5b2dce4744b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 26 Oct 2019 09:03:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../react/src/modules/competition/Registration.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index 6e14ab1d6..f66a89662 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -485,11 +485,6 @@ class Registration extends React.Component { this.props.showLoginDialog() return } - if (this.props.checkIfProfileCompleted() === false) { - this.props.showProfileCompleteDialog() - return - } - if (this.props.user.is_teacher === true) { @@ -577,10 +572,6 @@ class Registration extends React.Component { this.props.showLoginDialog() return } - if (this.props.checkIfProfileCompleted() === false) { - this.props.showProfileCompleteDialog() - return - } @@ -772,6 +763,12 @@ class Registration extends React.Component { // /competitions/:identifier/competition_teams.json Personalregistration = () => { let {teacher_staff, member_staff, data, enroll_ended, enrolled} = this.state; + + if (this.props.checkIfLogin() === false) { + this.props.showLoginDialog(); + return + } + if (enroll_ended === true) { //已截止 this.props.showNotification(`报名已截止`);