Skip to content

Commit

Permalink
Merge pull request #10226 from Expensify/ckt_debitCard_isDebitCondition
Browse files Browse the repository at this point in the history
Only show P2PDebitCards in payment method list
  • Loading branch information
Chris Kosuke Tseng authored Aug 3, 2022
2 parents 1d06ec9 + 28ed026 commit 30d4e32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/Payments/PaymentMethodList.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ class PaymentMethodList extends Component {
* @returns {Array}
*/
getFilteredPaymentMethods() {
// Hide the billing card from the payments menu for now because you can't make it your default method, or delete it
const filteredCardList = _.filter(this.props.cardList, card => !card.additionalData.isBillingCard);
// Hide any billing cards that are not P2P debit cards for now because you cannot make them your default method, or delete them
const filteredCardList = _.filter(this.props.cardList, card => card.additionalData.isP2PDebitCard);

let combinedPaymentMethods = PaymentUtils.formatPaymentMethods(this.props.bankAccountList, filteredCardList, this.props.payPalMeUsername, this.props.userWallet);

Expand Down

0 comments on commit 30d4e32

Please sign in to comment.