CSR-2290 - reset part state when vehicle changed
CSR-2290 - reset part state when vehicle changed by heritage during insurance verification
This commit is contained in:
parent
4c832789df
commit
9725665fac
1 changed files with 6 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue