From f8b49e17132439f7e2a130e647a6f5a677177f15 Mon Sep 17 00:00:00 2001 From: Sneha Date: Wed, 20 Dec 2023 13:02:45 +0530 Subject: [PATCH] CSR-1826 --- src/store/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 83186d527..210483b77 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1871,7 +1871,6 @@ export const actions = { if (isDamageChanging) { //Reset dependent state when changing context.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES); - context.commit(storeMutations.UPDATE_VAPS, null); // Save new values context.commit(storeMutations.UPDATE_IS_REPAIR, isWindshieldRepair); @@ -1881,6 +1880,10 @@ export const actions = { ); context.commit(storeMutations.UPDATE_GLASS_TO_REPLACE, selectedGlassToReplace); } + const updateVaps = !isGlassToReplaceTheSame && isWindshieldRepairTheSame; + if (updateVaps) { + context.commit(storeMutations.UPDATE_VAPS, null); + } }, // Vin lookup