Skip to content

Commit

Permalink
Add reimbursementpage loader right away
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuoch committed Jan 27, 2023
1 parent 3670839 commit 4eebb61
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/actions/BankAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ function validateBankAccount(bankAccountID, validateCode) {
}

function openReimbursementAccountPage(stepToOpen, subStep, localCurrentStep) {
// Show loader right away, as optimisticData might be set only later in case multiple calls are in the queue
Onyx.merge(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {isLoading: true});
const onyxData = {
optimisticData: [
{
Expand Down

0 comments on commit 4eebb61

Please sign in to comment.