فهرست منبع

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'));
       toastError(t('installer.failed_to_install'));
     }
     }
-    finally {
-      setIsLoading(false);
-    }
   }, [currentLocale, router, t]);
   }, [currentLocale, router, t]);
 
 
   const hasErrorClass = isValidUserName ? '' : ' has-error';
   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);
       setLoginErrors(err);
       setIsLoading(false);
       setIsLoading(false);
     }
     }
-    finally {
-      setIsLoading(false);
-    }
   }, [router]);
   }, [router]);
 
 
   const formNotification = useCallback(() => {
   const formNotification = useCallback(() => {

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