Procházet zdrojové kódy

110234 remove finally

soumaeda před 2 roky
rodič
revize
3019afbdbb
1 změnil soubory, kde provedl 0 přidání a 6 odebrání
  1. 0 6
      apps/app/src/components/LoginForm.tsx

+ 0 - 6
apps/app/src/components/LoginForm.tsx

@@ -116,9 +116,6 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
       setLoginErrors(errs);
       setIsLoading(false);
     }
-    finally {
-      setIsLoading(false);
-    }
     return;
 
   }, [passwordForLogin, resetLoginErrors, router, usernameForLogin]);
@@ -332,9 +329,6 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
       }
       setIsLoading(false);
     }
-    finally {
-      setIsLoading(false);
-    }
     return;
   }, [usernameForRegister, nameForRegister, emailForRegister, passwordForRegister, resetRegisterErrors, router, isEmailAuthenticationEnabled]);