소스 검색

110234 remove finally process

soumaeda 2 년 전
부모
커밋
0ef6de6d5a
3개의 변경된 파일0개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 3
      apps/app/src/components/InstallerForm.tsx
  2. 0 3
      apps/app/src/components/InvitedForm.tsx
  3. 0 6
      apps/app/src/components/LoginForm.tsx

+ 0 - 3
apps/app/src/components/InstallerForm.tsx

@@ -79,9 +79,6 @@ const InstallerForm = memo((): JSX.Element => {
 
       toastError(t('installer.failed_to_install'));
     }
-    finally {
-      setIsLoading(false);
-    }
   }, [currentLocale, router, t]);
 
   const hasErrorClass = isValidUserName ? '' : ' has-error';

+ 0 - 3
apps/app/src/components/InvitedForm.tsx

@@ -50,9 +50,6 @@ export const InvitedForm = (props: InvitedFormProps): JSX.Element => {
       setLoginErrors(err);
       setIsLoading(false);
     }
-    finally {
-      setIsLoading(false);
-    }
   }, [router]);
 
   const formNotification = useCallback(() => {

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