diff --git a/src/store/index.js b/src/store/index.js index 7db358c1e..014ba7ec7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -288,6 +288,13 @@ export const mutations = { state.order.referralCorrelationId = orderInformation.referralCorrelationId; state.order.eon = orderInformation.eon; + if (state.order.vehicle.vin !== orderInformation.vehicle?.vin) { + state.applicationUser.pageData[fmgPageValues.PART_QUESTIONS] = null; + state.applicationUser.pageData[fmgPageValues.VEHICLE_PARTS] = null; + state.applicationUser.pageData[fmgPageValues.MOLDING_QUESTIONS] = null; + state.applicationUser.pageData[fmgPageValues.CAPABILITY_QUESTIONS] = null; + } + state.order.vehicle = Object.assign(state.order.vehicle, { year: orderInformation.vehicle?.year, make: orderInformation.vehicle?.make,