2
0
kaori 3 жил өмнө
parent
commit
9cdf1b91a2

+ 2 - 2
packages/app/src/components/LoginForm.tsx

@@ -94,14 +94,14 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
       const { redirectTo, userStatus } = res.data;
 
       if (redirectTo != null) {
-        router.push(redirectTo);
+        return router.push(redirectTo);
       }
 
       if (userStatus !== USER_STATUS.ACTIVE) {
         window.location.href = '/';
       }
 
-      router.push('/');
+      return router.push('/');
     }
     catch (err) {
       const errs = toArrayIfNot(err);