Skip to content

Commit

Permalink
fix(wallet): missing key on assigned card objects
Browse files Browse the repository at this point in the history
  • Loading branch information
pac-guerreiro committed Oct 13, 2023
1 parent e33a8d3 commit 59aae97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/settings/Wallet/PaymentMethodList.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ function PaymentMethodList({
return _.map(assignedCards, (card) => {
const icon = getBankIcon(card.bank);
return {
key: card.key,
title: translate('walletPage.expensifyCard'),
description: card.domainName,
onPress: () => Navigation.navigate(ROUTES.SETTINGS_WALLET_DOMAINCARDS.getRoute(card.domainName)),
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Wallet/assignedCardPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const assignedCardPropTypes = PropTypes.shape({
domainName: PropTypes.string,
maskedPan: PropTypes.string,
isVirtual: PropTypes.bool,
fraud: CONST.EXPENSIFY_CARD.FRAUD_TYPES,
fraud: PropTypes.oneOf([CONST.EXPENSIFY_CARD.FRAUD_TYPES.DOMAIN, CONST.EXPENSIFY_CARD.FRAUD_TYPES.USER, CONST.EXPENSIFY_CARD.FRAUD_TYPES.NONE]),
cardholderFirstName: PropTypes.string,
cardholderLastName: PropTypes.string,
});
Expand Down

0 comments on commit 59aae97

Please sign in to comment.