Merge pull request #1305 from ayan4m1/feature/login-error

Fix infinite spinner for login that results in failure
This commit is contained in:
SleeplessOne1917 2023-06-16 22:24:00 +00:00 committed by GitHub
commit 1242d8d426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,7 @@ export class Login extends Component<any, State> {
toast(i18n.t("enter_two_factor_code"), "info"); toast(i18n.t("enter_two_factor_code"), "info");
} }
i.setState({ loginRes: { state: "empty" } }); i.setState({ loginRes: { state: "failed", msg: loginRes.msg } });
break; break;
} }