Skip to content

Commit

Permalink
Merge pull request #6257 from Expensify/nikki-fix-removevba
Browse files Browse the repository at this point in the history
Reset instead of deleting achData
  • Loading branch information
marcaaron authored Nov 6, 2021
2 parents b770151 + 5a44259 commit b12eb5f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/libs/actions/BankAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,15 @@ function resetFreePlanBankAccount() {
return;
}

// Clear reimbursement account, draft user input, and the bank account list
Onyx.set(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {});
// Reset reimbursement account, and clear draft user input, and the bank account list
const achData = {
useOnfido: true,
policyID: '',
isInSetup: true,
domainLimit: 0,
currentStep: CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT,
};
Onyx.set(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {achData});
Onyx.set(ONYXKEYS.REIMBURSEMENT_ACCOUNT_DRAFT, null);
Onyx.set(ONYXKEYS.BANK_ACCOUNT_LIST, []);

Expand Down

0 comments on commit b12eb5f

Please sign in to comment.