Skip to content

Commit

Permalink
Merge pull request #55767 from Shahidullah-Muffakir/fix/55189
Browse files Browse the repository at this point in the history
Show 'Report physical card loss/damage' option for physical cards, regardless of activation status
  • Loading branch information
cristipaval authored Jan 30, 2025
2 parents b1e9463 + d742912 commit c3b2f3a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/pages/settings/Wallet/ExpensifyCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,17 +253,20 @@ function ExpensifyCardPage({
</>
))}
{physicalCards.map((card) => {
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN) {
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN && card.state !== CONST.EXPENSIFY_CARD.STATE.NOT_ACTIVATED) {
return null;
}

return (
<>
<MenuItemWithTopDescription
description={translate('cardPage.physicalCardNumber')}
title={maskCard(card?.lastFourPAN)}
interactive={false}
titleStyle={styles.walletCardNumber}
/>
{card.state === CONST.EXPENSIFY_CARD.STATE.OPEN && (
<MenuItemWithTopDescription
description={translate('cardPage.physicalCardNumber')}
title={maskCard(card?.lastFourPAN)}
interactive={false}
titleStyle={styles.walletCardNumber}
/>
)}
<MenuItem
title={translate('reportCardLostOrDamaged.report')}
icon={Expensicons.Flag}
Expand Down

0 comments on commit c3b2f3a

Please sign in to comment.