Browse Source

110234 remove finally

soumaeda 2 years ago
parent
commit
3019afbdbb
1 changed files with 0 additions and 6 deletions
  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);
       setLoginErrors(errs);
       setIsLoading(false);
       setIsLoading(false);
     }
     }
-    finally {
-      setIsLoading(false);
-    }
     return;
     return;
 
 
   }, [passwordForLogin, resetLoginErrors, router, usernameForLogin]);
   }, [passwordForLogin, resetLoginErrors, router, usernameForLogin]);
@@ -332,9 +329,6 @@ export const LoginForm = (props: LoginFormProps): JSX.Element => {
       }
       }
       setIsLoading(false);
       setIsLoading(false);
     }
     }
-    finally {
-      setIsLoading(false);
-    }
     return;
     return;
   }, [usernameForRegister, nameForRegister, emailForRegister, passwordForRegister, resetRegisterErrors, router, isEmailAuthenticationEnabled]);
   }, [usernameForRegister, nameForRegister, emailForRegister, passwordForRegister, resetRegisterErrors, router, isEmailAuthenticationEnabled]);