CSR-297 chip count reset in page and not store

This commit is contained in:
CarlNation 2022-03-07 09:56:31 -05:00
parent 3e91d1dbee
commit acc7adcb4a
2 changed files with 3 additions and 4 deletions

View file

@ -239,8 +239,10 @@ export default {
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
if (windshieldChipCount){
if (this.isWindshieldRepair && windshieldChipCount){
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, parseInt(windshieldChipCount));
} else {
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
}
store.commit(this.storeMutations.UPDATE_GLASS_TO_REPLACE, this.selectedGlassToReplace());

View file

@ -68,9 +68,6 @@ export const mutations = {
},
updateIsRepair(state, isRepair){
state.order.damage.isRepair = isRepair;
if (!isRepair){
this.commit(storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
}
},
updateNumberOfChips(state, numberOfChips){
state.order.damage.numberOfChips = numberOfChips;