Merge pull request #1385 from guardicore/0910/brief-alert-register

Fix brief red alert on register.
This commit is contained in:
Mike Salvatore 2021-07-29 11:54:38 -04:00 committed by GitHub
commit 8e41634854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -39,11 +39,12 @@ class RegisterPageComponent extends React.Component {
this.auth.attemptNoAuthLogin().then(() => { this.auth.attemptNoAuthLogin().then(() => {
this.redirectToHome(); this.redirectToHome();
}); });
} else {
this.setState({
failed: true,
error: res['error']
});
} }
this.setState({
failed: true,
error: res['error']
});
}) })
} }