Skip to content

Commit

Permalink
Merge pull request #34124 from bernhardoj/fix/26631-bank-account
Browse files Browse the repository at this point in the history
Fix bank account page shows the start page when pressing "Continue with setup" while offline
  • Loading branch information
NikkiWines authored Jan 22, 2024
2 parents e184024 + cd514f0 commit 6040dd3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/libs/actions/ReimbursementAccount/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ export {setBankAccountFormValidationErrors, setPersonalBankAccountFormValidation
* - CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID to ask them to login to their bank via Plaid
*
* @param {String} subStep
* @returns {Promise<void>}
*/
function setBankAccountSubStep(subStep) {
Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {achData: {subStep}});
return Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {achData: {subStep}});
}

function hideBankAccountErrors() {
Expand Down
4 changes: 3 additions & 1 deletion src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,9 @@ function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, pol
);

const continueFunction = () => {
setShouldShowContinueSetupButton(false);
BankAccounts.setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.MANUAL).then(() => {
setShouldShowContinueSetupButton(false);
});
fetchData(true);
};

Expand Down

0 comments on commit 6040dd3

Please sign in to comment.