UI: Fix brief red alert on register.

This commit is contained in:
Ilija Lazoroski 2021-07-29 17:18:53 +02:00
parent 72f77b7d29
commit 62024ae051
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.redirectToHome();
});
} else {
this.setState({
failed: true,
error: res['error']
});
}
this.setState({
failed: true,
error: res['error']
});
})
}