]> Untitled Git - lemmy-ui.git/commitdiff
Merge pull request #1305 from ayan4m1/feature/login-error
authorSleeplessOne1917 <abias1122@gmail.com>
Fri, 16 Jun 2023 22:24:00 +0000 (22:24 +0000)
committerGitHub <noreply@github.com>
Fri, 16 Jun 2023 22:24:00 +0000 (22:24 +0000)
Fix infinite spinner for login that results in failure

src/shared/components/home/login.tsx

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