Merge pull request #2056 from Safelite/feature/CSR-2290

Feature/csr 2290
This commit is contained in:
CarlNation 2024-10-30 06:55:01 -04:00 committed by GitHub
commit 984ad6280b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,6 +115,12 @@ const routes = [
to.query.fmgPage
);
// clear part related state because heritage selected a new vehicle
if (to.query.fmgPage === fmgPageValues.VEHICLE && eval(getFunnelCookie()?.HasDelayedClaimRegistration)) {
console.log(new Date() + "Router: Policy Vehicle Changed");
store.commit(storeMutations.RESET_GLASS_PARTS_STATE);
}
const pageToRedirectTo = await getPageToRouteExistingOrderTo(to);
// This logic may determine that the user should be sent to heritage -- if so, do that here.