mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-23 23:11:14 +00:00
Merge pull request #1305 from ayan4m1/feature/login-error
Fix infinite spinner for login that results in failure
This commit is contained in:
commit
1242d8d426
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue