diff --git a/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx b/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx index 011e89c4d539..11820cd2c471 100644 --- a/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx +++ b/src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx @@ -141,7 +141,6 @@ function ReimbursementAccountPage({route, policy}: ReimbursementAccountPageProps const {translate} = useLocalize(); const {isOffline} = useNetwork(); const requestorStepRef = useRef(null); - const prevIsReimbursementAccountLoading = usePrevious(reimbursementAccount?.isLoading); const prevReimbursementAccount = usePrevious(reimbursementAccount); const prevIsOffline = usePrevious(isOffline); @@ -222,13 +221,6 @@ function ReimbursementAccountPage({route, policy}: ReimbursementAccountPageProps // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps }, []); // The empty dependency array ensures this runs only once after the component mounts. - useEffect(() => { - if (typeof reimbursementAccount?.isLoading !== 'boolean' || reimbursementAccount.isLoading === prevIsReimbursementAccountLoading) { - return; - } - setHasACHDataBeenLoaded(true); - }, [prevIsReimbursementAccountLoading, reimbursementAccount?.isLoading]); - useEffect( () => { // Check for network change from offline to online