Skip to content

Commit

Permalink
Merge pull request #56152 from Expensify/revert-55767-fix/55189
Browse files Browse the repository at this point in the history
[CP Staging] Revert "Show 'Report physical card loss/damage' option for physical cards, regardless of activation status"

(cherry picked from commit 1365991)

(CP triggered by mountiny)
  • Loading branch information
mountiny authored and OSBotify committed Jan 31, 2025
1 parent b7b6d26 commit e33fd66
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/pages/settings/Wallet/ExpensifyCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,20 +253,17 @@ function ExpensifyCardPage({
</>
))}
{physicalCards.map((card) => {
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN && card.state !== CONST.EXPENSIFY_CARD.STATE.NOT_ACTIVATED) {
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN) {
return null;
}

return (
<>
{card.state === CONST.EXPENSIFY_CARD.STATE.OPEN && (
<MenuItemWithTopDescription
description={translate('cardPage.physicalCardNumber')}
title={maskCard(card?.lastFourPAN)}
interactive={false}
titleStyle={styles.walletCardNumber}
/>
)}
<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 e33fd66

Please sign in to comment.