From cdbe6af7aa7af1d319da958c7338ffb4c617990b Mon Sep 17 00:00:00 2001 From: DylanDylann Date: Fri, 6 Sep 2024 16:23:24 +0700 Subject: [PATCH] add fallback value --- .../expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx index e121de7fd159..d6023824cc10 100644 --- a/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx +++ b/src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx @@ -53,7 +53,7 @@ function WorkspaceExpensifyCardBankAccounts({route}: WorkspaceExpensifyCardBankA return eligibleBankAccounts.map((bankAccount) => { const bankName = (bankAccount.accountData?.addressName ?? '') as BankName; const bankAccountNumber = bankAccount.accountData?.accountNumber ?? ''; - const bankAccountID = bankAccount.accountData?.bankAccountID; + const bankAccountID = bankAccount.accountData?.bankAccountID ?? bankAccount?.methodID; const {icon, iconSize, iconStyles} = getBankIcon({bankName, styles});