Skip to content

Commit 30d4e32

Browse files
author
Chris Kosuke Tseng
authored
Merge pull request #10226 from Expensify/ckt_debitCard_isDebitCondition
Only show P2PDebitCards in payment method list
2 parents 1d06ec9 + 28ed026 commit 30d4e32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/settings/Payments/PaymentMethodList.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class PaymentMethodList extends Component {
108108
* @returns {Array}
109109
*/
110110
getFilteredPaymentMethods() {
111-
// Hide the billing card from the payments menu for now because you can't make it your default method, or delete it
112-
const filteredCardList = _.filter(this.props.cardList, card => !card.additionalData.isBillingCard);
111+
// Hide any billing cards that are not P2P debit cards for now because you cannot make them your default method, or delete them
112+
const filteredCardList = _.filter(this.props.cardList, card => card.additionalData.isP2PDebitCard);
113113

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

0 commit comments

Comments
 (0)