Skip to content

Commit df25384

Browse files
committed
fix: Remove full screen loader from RHP on magic code submit
1 parent b73ebe2 commit df25384

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/pages/ReimbursementAccount/ReimbursementAccountPage.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function ReimbursementAccountPage({route, policy, isLoadingPolicy}: Reimbursemen
6767
const [plaidCurrentEvent = ''] = useOnyx(ONYXKEYS.PLAID_CURRENT_EVENT, {canBeMissing: true});
6868
const [onfidoToken = ''] = useOnyx(ONYXKEYS.ONFIDO_TOKEN, {canBeMissing: true});
6969
const [isLoadingApp = false] = useOnyx(ONYXKEYS.IS_LOADING_APP, {canBeMissing: true});
70-
const [account] = useOnyx(ONYXKEYS.ACCOUNT, {canBeMissing: true});
7170
const [isValidateCodeActionModalVisible, setIsValidateCodeActionModalVisible] = useState(false);
7271

7372
const {isBetaEnabled} = usePermissions();
@@ -360,7 +359,7 @@ function ReimbursementAccountPage({route, policy, isLoadingPolicy}: Reimbursemen
360359
}, [achData?.isOnfidoSetupComplete, achData?.state, currentStep, hasInProgressVBBA, isOffline, onfidoToken]);
361360

362361
const isLoading =
363-
(isLoadingApp || !!account?.isLoading || (reimbursementAccount?.isLoading && !reimbursementAccount?.isCreateCorpayBankAccount)) &&
362+
(isLoadingApp || (reimbursementAccount?.isLoading && !reimbursementAccount?.isCreateCorpayBankAccount)) &&
364363
(!plaidCurrentEvent || plaidCurrentEvent === CONST.BANK_ACCOUNT.PLAID.EVENTS_NAME.EXIT);
365364

366365
const shouldShowOfflineLoader = !(

0 commit comments

Comments
 (0)