From 774b28935b75f7a51f1ca329ad79721ca0c87a20 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Tue, 6 Feb 2024 14:21:42 +0530 Subject: [PATCH] fix: Assigned cards tile uses cardholderName- lastFourDigits instead of bankName - lastFourDigits. Signed-off-by: Krishna Gupta --- src/pages/settings/Wallet/PaymentMethodList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/settings/Wallet/PaymentMethodList.js b/src/pages/settings/Wallet/PaymentMethodList.js index 0c708442cec6..d5bb268f0f86 100644 --- a/src/pages/settings/Wallet/PaymentMethodList.js +++ b/src/pages/settings/Wallet/PaymentMethodList.js @@ -227,9 +227,10 @@ function PaymentMethodList({ // In the case a user has been assigned multiple physical Expensify Cards under one domain, display the Card with PAN const expensifyCardDescription = numberPhysicalExpensifyCards > 1 ? CardUtils.getCardDescription(card.cardID) : translate('walletPage.expensifyCard'); + const cartTitle = card.lastFourPAN ? `${card.bank} - ${card.lastFourPAN}` : card.bank; return { key: card.cardID, - title: isExpensifyCard ? expensifyCardDescription : card.cardName, + title: isExpensifyCard ? expensifyCardDescription : cartTitle, description: card.domainName, onPress: isExpensifyCard ? () => Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAINCARD.getRoute(card.domainName)) : () => {}, shouldShowRightIcon: isExpensifyCard,