From 15787aeb0d8723340ed76041cdb0c97fd956af2f Mon Sep 17 00:00:00 2001 From: Katie Date: Tue, 14 Jun 2022 09:32:14 -0400 Subject: [PATCH] CSR-691 Revert a few dispatchStoreAction calls --- src/layouts/address-vehicles/address-vehicles.vue | 4 +--- src/layouts/license-plate-lookup/license-plate-lookup.vue | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/layouts/address-vehicles/address-vehicles.vue b/src/layouts/address-vehicles/address-vehicles.vue index 73b5fecc7..c9bcb95bb 100644 --- a/src/layouts/address-vehicles/address-vehicles.vue +++ b/src/layouts/address-vehicles/address-vehicles.vue @@ -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}`); }, diff --git a/src/layouts/license-plate-lookup/license-plate-lookup.vue b/src/layouts/license-plate-lookup/license-plate-lookup.vue index 6270445b5..03e386e13 100644 --- a/src/layouts/license-plate-lookup/license-plate-lookup.vue +++ b/src/layouts/license-plate-lookup/license-plate-lookup.vue @@ -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, () => {