Merge pull request #1648 from Safelite/feature/CSR-1826

CSR-1826
This commit is contained in:
AMSNEHA 2023-12-20 13:21:06 +05:30 committed by GitHub
commit 37a8150e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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