From 8ab57e6db138a02139a36a2928ab2e7fc3a0a678 Mon Sep 17 00:00:00 2001 From: DylanDylann Date: Tue, 29 Oct 2024 19:03:59 +0700 Subject: [PATCH] clean condition --- .../expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx index 88026af0021b..2b3bb8a4b9e8 100644 --- a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx +++ b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx @@ -57,12 +57,12 @@ function WorkspaceExpensifyCardPageEmptyState({route, policy}: WorkspaceExpensif const isSetupUnfinished = !eligibleBankAccounts.length && reimbursementAccountStatus && reimbursementAccountStatus !== CONST.BANK_ACCOUNT.STATE.OPEN; const startFlow = useCallback(() => { - if (!eligibleBankAccounts.length || isSetupUnfinished) { + if (!eligibleBankAccounts.length) { Navigation.navigate(ROUTES.BANK_ACCOUNT_WITH_STEP_TO_OPEN.getRoute('new', policy?.id, ROUTES.WORKSPACE_EXPENSIFY_CARD.getRoute(policy?.id ?? '-1'))); } else { Navigation.navigate(ROUTES.WORKSPACE_EXPENSIFY_CARD_BANK_ACCOUNT.getRoute(policy?.id ?? '-1')); } - }, [eligibleBankAccounts.length, isSetupUnfinished, policy?.id]); + }, [eligibleBankAccounts.length, policy?.id]); const confirmCurrencyChangeAndHideModal = useCallback(() => { if (!policy) {