Skip to content

Commit

Permalink
Merge pull request Expensify#35303 from dukenv0307/fix/35094
Browse files Browse the repository at this point in the history
fix logic request physical card
  • Loading branch information
luacmartins authored Jan 30, 2024
2 parents cfb6f2c + 3d9a1e0 commit 5aa3225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Wallet/Card/BaseGetPhysicalCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ function BaseGetPhysicalCard({
// If the current step of the get physical card flow is the confirmation page
if (isConfirmation) {
const domainCards = CardUtils.getDomainCards(cardList)[domain];
const virtualCard = _.find(domainCards, (card) => card.isVirtual) || {};
const cardID = virtualCard.cardID;
const physicalCard = _.find(domainCards, (card) => !card.isVirtual) || {};
const cardID = physicalCard.cardID;
Wallet.requestPhysicalExpensifyCard(cardID, authToken, updatedPrivatePersonalDetails);
// Form draft data needs to be erased when the flow is complete,
// so that no stale data is left on Onyx
Expand Down

0 comments on commit 5aa3225

Please sign in to comment.