Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Jul 26, 2024
1 parent 7fd0dfe commit 25646b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/AddPaymentMethodMenu.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {RefObject} from 'react';
import React, { useEffect } from 'react';
import React, {useEffect} from 'react';
import type {View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
Expand Down Expand Up @@ -79,7 +79,7 @@ function AddPaymentMethodMenu({
}

onItemSelected(CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT);
}, [isPersonalOnlyOption, isVisible]);
}, [isPersonalOnlyOption, isVisible, onItemSelected]);

if (isPersonalOnlyOption) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Wallet/AddDebitCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import ScreenWrapper from '@components/ScreenWrapper';
import useLocalize from '@hooks/useLocalize';
import usePrevious from '@hooks/usePrevious';
import Navigation from '@libs/Navigation/Navigation';
import NotFoundPage from '@pages/ErrorPage/NotFoundPage';
import * as PaymentMethods from '@userActions/PaymentMethods';
import ONYXKEYS from '@src/ONYXKEYS';
import NotFoundPage from '@pages/ErrorPage/NotFoundPage';

function DebitCardPage() {
// Temporarily disabled
Expand Down
3 changes: 1 addition & 2 deletions src/pages/settings/Wallet/PaymentMethodList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,9 @@ function PaymentMethodList({
return assignedCardsGrouped;
}

const paymentCardList = fundList ?? {};

// Hide any billing cards that are not P2P debit cards for now because you cannot make them your default method, or delete them
// All payment cards are temporarily disabled for use as a payment method
// const paymentCardList = fundList ?? {};
// const filteredCardList = Object.values(paymentCardList).filter((card) => !!card.accountData?.additionalData?.isP2PDebitCard);
const filteredCardList = {};
let combinedPaymentMethods = PaymentUtils.formatPaymentMethods(bankAccountList ?? {}, filteredCardList, styles);
Expand Down

0 comments on commit 25646b9

Please sign in to comment.