From 52faa21d2196e3c2b910b749e182e9901be34999 Mon Sep 17 00:00:00 2001 From: Agata Kosior Date: Thu, 11 Jul 2024 12:39:44 +0200 Subject: [PATCH] fix: fix condition --- .../expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx index 59d52a8c8e53..ac6c03dd18b3 100644 --- a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx +++ b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx @@ -48,9 +48,10 @@ function WorkspaceExpensifyCardPageEmptyState({route, policy}: WorkspaceExpensif const reimbursementAccountStatus = reimbursementAccount?.achData?.state ?? ''; const isSetupUnfinished = - reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.VERIFYING || - reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.SETUP || - reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.VALIDATING; + isEmptyObject(bankAccountList) && + (reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.VERIFYING || + reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.SETUP || + reimbursementAccountStatus === CONST.BANK_ACCOUNT.STATE.VALIDATING); const startFlow = useCallback(() => { if (isEmptyObject(bankAccountList) || isSetupUnfinished) {