Merge pull request #276 from Safelite/feature/CSR-297

Feature/csr 297
This commit is contained in:
CarlNation 2022-03-07 11:32:19 -05:00 committed by GitHub
commit 2c3668f986
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,13 +234,10 @@ export default {
}, },
async forwardButtonAction() { async forwardButtonAction() {
const windshieldChipCount = this.selectedWindshieldOptions.selectedWindshieldChipCount && this.isWindshieldDamageLocation ?
this.selectedWindshieldOptions.selectedWindshieldChipCount[0] : null;
store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair); store.commit(this.storeMutations.UPDATE_IS_REPAIR, this.isWindshieldRepair);
if (this.isWindshieldRepair && windshieldChipCount){ if (this.isWindshieldRepair){
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, parseInt(windshieldChipCount)); store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, parseInt(this.selectedWindshieldOptions.selectedWindshieldChipCount));
} else { } else {
store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, null); store.commit(this.storeMutations.UPDATE_NUMBER_OF_CHIPS, null);
} }