CSR-297 clean up chip count logic
This commit is contained in:
parent
acc7adcb4a
commit
c952d3f85b
1 changed files with 2 additions and 5 deletions
|
|
@ -234,13 +234,10 @@ export default {
|
|||
},
|
||||
|
||||
async forwardButtonAction() {
|
||||
const windshieldChipCount = this.selectedWindshieldOptions.selectedWindshieldChipCount && this.isWindshieldDamageLocation ?
|
||||
this.selectedWindshieldOptions.selectedWindshieldChipCount[0] : null;
|
||||
|
||||
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
|
||||
|
||||
if (this.isWindshieldRepair && windshieldChipCount){
|
||||
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, parseInt(windshieldChipCount));
|
||||
if (this.isWindshieldRepair && this.selectedWindshieldOptions.selectedWindshieldChipCount){
|
||||
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, parseInt(this.selectedWindshieldOptions.selectedWindshieldChipCount));
|
||||
} else {
|
||||
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue