Skip to content

Commit e33fd66

Browse files
mountinyOSBotify
authored andcommitted
Merge pull request #56152 from Expensify/revert-55767-fix/55189
[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)
1 parent b7b6d26 commit e33fd66

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/pages/settings/Wallet/ExpensifyCardPage.tsx

+7-10
Original file line numberDiff line numberDiff line change
@@ -253,20 +253,17 @@ function ExpensifyCardPage({
253253
</>
254254
))}
255255
{physicalCards.map((card) => {
256-
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN && card.state !== CONST.EXPENSIFY_CARD.STATE.NOT_ACTIVATED) {
256+
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN) {
257257
return null;
258258
}
259-
260259
return (
261260
<>
262-
{card.state === CONST.EXPENSIFY_CARD.STATE.OPEN && (
263-
<MenuItemWithTopDescription
264-
description={translate('cardPage.physicalCardNumber')}
265-
title={maskCard(card?.lastFourPAN)}
266-
interactive={false}
267-
titleStyle={styles.walletCardNumber}
268-
/>
269-
)}
261+
<MenuItemWithTopDescription
262+
description={translate('cardPage.physicalCardNumber')}
263+
title={maskCard(card?.lastFourPAN)}
264+
interactive={false}
265+
titleStyle={styles.walletCardNumber}
266+
/>
270267
<MenuItem
271268
title={translate('reportCardLostOrDamaged.report')}
272269
icon={Expensicons.Flag}

0 commit comments

Comments
 (0)