Skip to content

Commit

Permalink
Merge pull request #32949 from Expensify/cmartins-fixEnableWalletFlow
Browse files Browse the repository at this point in the history
[CP Staging] Clear plaid data when trying to enable walelt
  • Loading branch information
cristipaval authored Dec 13, 2023
2 parents fa25060 + 721e733 commit 124db72
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/KYCWall/BaseKYCWall.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Dimensions} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import _ from 'underscore';
import AddPaymentMethodMenu from '@components/AddPaymentMethodMenu';
import * as BankAccounts from '@libs/actions/BankAccounts';
import getClickedTargetLocation from '@libs/getClickedTargetLocation';
import Log from '@libs/Log';
import Navigation from '@libs/Navigation/Navigation';
Expand Down Expand Up @@ -118,7 +119,7 @@ function KYCWall({
const selectPaymentMethod = (paymentMethod) => {
onSelectPaymentMethod(paymentMethod);
if (paymentMethod === CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT) {
Navigation.navigate(addBankAccountRoute);
BankAccounts.openPersonalBankAccountSetupView();
} else if (paymentMethod === CONST.PAYMENT_METHODS.DEBIT_CARD) {
Navigation.navigate(addDebitCardRoute);
} else if (paymentMethod === CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT) {
Expand Down

0 comments on commit 124db72

Please sign in to comment.