Merge pull request #2908 from Safelite/feature/CASH-1636

Tie up possible race conditions
This commit is contained in:
chloeherdsafelite 2025-10-22 13:12:46 -04:00 committed by GitHub
commit 8d48f10562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -41,7 +41,7 @@ export async function beforeEach(to, from) {
nextPage: to?.name,
};
handleSoftError(errorPayload, true);
await handleSoftError(errorPayload, true);
return false;
}
@ -88,7 +88,7 @@ export async function beforeEach(to, from) {
nextPage: to?.name,
};
handleSoftError(errorPayload);
await handleSoftError(errorPayload);
return;
}

View file

@ -30,7 +30,7 @@ async function navigate(scenario, currentPageName, withSaving = false, forceTopL
nextPage: nextPage?.name,
};
handleSoftError(errorPayload);
await handleSoftError(errorPayload);
return;
}

View file

@ -18,7 +18,7 @@ export async function errorBeforeEnter(to, from) {
nextPage: to?.name,
};
handleHardError(errorPayload);
await handleHardError(errorPayload);
return;
}
@ -31,7 +31,7 @@ export async function errorBeforeEnter(to, from) {
nextPage: to?.name,
};
handleHardError(errorPayload);
await handleHardError(errorPayload);
return;
} else {
await store.dispatch(storeActions.UPDATE_HAS_TRIGGERED_ERROR, true);