Skip to content

Commit

Permalink
consolidate methods
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Nov 23, 2023
1 parent 98d2c49 commit 1163dc3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/pages/settings/Wallet/WalletPage/WalletPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,16 +202,11 @@ function WalletPage({bankAccountList, betas, cardList, fundList, isLoadingPaymen
return;
}

if (paymentType === CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT) {
if (paymentType === CONST.PAYMENT_METHODS.PERSONAL_BANK_ACCOUNT || paymentType === CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT) {
BankAccounts.openPersonalBankAccountSetupView();
return;
}

if (paymentType === CONST.PAYMENT_METHODS.BUSINESS_BANK_ACCOUNT) {
Navigation.navigate(ROUTES.SETTINGS_ADD_BANK_ACCOUNT);
return;
}

throw new Error('Invalid payment method type selected');
};

Expand Down

0 comments on commit 1163dc3

Please sign in to comment.