Merge pull request #1827 from Safelite/feature/csr-2051

Check correct location for EON on loadsession to avoid clearing state.
This commit is contained in:
chloeherdsafelite 2024-04-16 14:11:26 -04:00 committed by GitHub
commit ed500ba539
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1808,7 +1808,10 @@ export const actions = {
});
// clear the state if the existing EON does not equal what is returned from loadSession
if (context.state.order.eon && context.state.order.eon != response.data.eon) {
if (
context.state.order.eon &&
context.state.order.eon != response.data.order.eon
) {
context.commit(storeMutations.RESET_STATE);
}