Skip to content

Commit

Permalink
fix: fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Jul 11, 2024
1 parent b7ce53c commit 52faa21
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 52faa21

Please sign in to comment.