kaori 3 лет назад
Родитель
Сommit
9cdf1b91a2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/components/LoginForm.tsx

+ 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);