CSR-691 Revert a few dispatchStoreAction calls

This commit is contained in:
Katie 2022-06-14 09:32:14 -04:00
parent fabfc93468
commit 15787aeb0d
2 changed files with 2 additions and 4 deletions

View file

@ -199,7 +199,7 @@ export default {
);
},
resetDependentState() { // needed because navigateAfterSaveToHeritageFunnel calls it
this.dispatchStoreAction(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
store.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
},
updateCustomerInfo(vin, vehicle) {
if (this.isCarIdDifferent && !this.isSelectedGlassAvailableForVehicle) {
@ -221,8 +221,6 @@ export default {
watch: {
selectedVehicleVin() {
// does this vehicle match the previously selected carId?
console.log(this.selectedVehicle)
console.log(store.getters.vehicle)
this.isCarIdDifferent = this.selectedVehicle.vehicle.carId !== store.getters.vehicle.carId;
this.$refs.funnelFooter.updateButtonText(`Continue with ${this.selectedVehicle.vehicle.year} ${this.selectedVehicle.vehicle.make} ${this.selectedVehicle.vehicle.model}`);
},

View file

@ -198,7 +198,7 @@ export default {
store.commit(storeMutations.UPDATE_REGISTRATION_CITY, null);
store.commit(storeMutations.UPDATE_REGISTRATION_FIRST_NAME, null);
store.commit(storeMutations.UPDATE_REGISTRATION_LAST_NAME, null);
this.dispatchStoreAction(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
store.dispatch(storeActions.RESET_PARTS_STATE_AND_DEPENDENCIES);
},
attachCustomEvents() {
this.prependActionToMethod(this, this.forwardButtonAction, () => {