Skip to content

Commit

Permalink
update after c+ review
Browse files Browse the repository at this point in the history
  • Loading branch information
narefyev91 committed Nov 19, 2024
1 parent 2d805db commit a0ec0c4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@ function SearchFiltersCardPage() {
.sort((a, b) => a.bank.localeCompare(b.bank))
.map((card) => {
const icon = getBankIcon({bankName: card.bank as BankName, isCard: true, styles});
const cardName = card?.nameValuePairs?.cardTitle ?? card?.cardName;
const text = card.bank === CONST.EXPENSIFY_CARD.BANK ? card.bank : cardName;

return {
lastFourPAN: card.lastFourPAN,
isVirtual: card?.nameValuePairs?.isVirtual,
text: card.bank === CONST.EXPENSIFY_CARD.BANK ? card.bank : card?.nameValuePairs?.cardTitle ?? card?.cardName,
text,
keyForList: card.cardID.toString(),
isSelected: newCards.includes(card.cardID.toString()),
bankIcon: icon,
Expand Down

0 comments on commit a0ec0c4

Please sign in to comment.