From 25ae51a4c1705c38a319ceb7f4e62ea465d3c9d2 Mon Sep 17 00:00:00 2001 From: VickyStash Date: Wed, 6 Nov 2024 09:57:35 +0100 Subject: [PATCH] Minor fix --- src/libs/CardUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/CardUtils.ts b/src/libs/CardUtils.ts index 80b784a162cf..ad9bf7f4b90e 100644 --- a/src/libs/CardUtils.ts +++ b/src/libs/CardUtils.ts @@ -190,7 +190,7 @@ function getCompanyCardNumber(cardList: Record, lastFourPAN?: st return ''; } - return Object.keys(cardList).find((card) => card.endsWith(lastFourPAN)) ?? ''; + return Object.keys(cardList).find((card) => card.endsWith(lastFourPAN)) ?? maskCard(lastFourPAN); } function getCardFeedIcon(cardFeed: CompanyCardFeed | typeof CONST.EXPENSIFY_CARD.BANK): IconAsset {