Skip to content

Commit

Permalink
Revert "Don't persist error after reconnecting with plaid"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron authored Jan 30, 2024
1 parent 480ae8d commit 5c8d2a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pages/ReimbursementAccount/ReimbursementAccountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,6 @@ function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, pol

const currentStepRouteParam = getStepToOpenFromRouteParams(route);
if (currentStepRouteParam === currentStep) {
// If the user is connecting online with plaid, reset any bank account errors so we don't persist old data from a potential previous connection
if (currentStep === CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT && achData.subStep === CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID) {
BankAccounts.hideBankAccountErrors();
}

// The route is showing the correct step, no need to update the route param or clear errors.
return;
}
Expand Down

0 comments on commit 5c8d2a8

Please sign in to comment.