Skip to content

Commit

Permalink
only show the 'Report physical card loss/damage' option if the card …
Browse files Browse the repository at this point in the history
…state is either open or not_activated
  • Loading branch information
Shahidullah-Muffakir committed Jan 27, 2025
1 parent cd55165 commit d742912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/Wallet/ExpensifyCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function ExpensifyCardPage({
</>
))}
{physicalCards.map((card) => {
if (card.state === CONST.EXPENSIFY_CARD.STATE.STATE_NOT_ISSUED || card.state === CONST.EXPENSIFY_CARD.STATE.STATE_SUSPENDED) {
if (card.state !== CONST.EXPENSIFY_CARD.STATE.OPEN && card.state !== CONST.EXPENSIFY_CARD.STATE.NOT_ACTIVATED) {
return null;
}

Expand Down

0 comments on commit d742912

Please sign in to comment.