From 239faec2f7a2680257435298cc28b0cb37fa6fdf Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 9 Jun 2023 08:18:08 -0400 Subject: [PATCH] Added code to reset appointment type and provider / mobile address when glass parts / supporting items / service zip changes --- src/mixins/vehicle-questions-mixin.js | 5 +---- src/store/index.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mixins/vehicle-questions-mixin.js b/src/mixins/vehicle-questions-mixin.js index f898c9276..8f6cad4eb 100644 --- a/src/mixins/vehicle-questions-mixin.js +++ b/src/mixins/vehicle-questions-mixin.js @@ -442,10 +442,7 @@ export default { const collectedGlassParts = this.reducedGlassPartsArray(partsOrQuestions); // save to store lineItems.glassParts - await baseMixin.methods.dispatchStoreAction( - storeActions.SAVE_GLASS_PARTS, - collectedGlassParts - ); + self.$store.dispatch(storeActions.SAVE_GLASS_PARTS, collectedGlassParts); const payment = store.getters.payment; diff --git a/src/store/index.js b/src/store/index.js index b12f99ac4..570f884b5 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1776,7 +1776,7 @@ export const actions = { }, saveSupportingItems(context, supportingItems) { - if (!deepEqual(supportingItems, context.getters.order.lineItems.supportingItems)) { + if (!deepEqual(supportingItems, context.state.order.lineItems.supportingItems)) { context.commit(storeMutations.RESET_SERVICE_LOCATION_APPOINTMENT_TYPE); context.commit(storeMutations.RESET_SERVICE_LOCATION_PROVIDER); }