Added code to reset appointment type and provider / mobile address when glass parts / supporting items / service zip changes

This commit is contained in:
Leah Schumann 2023-06-09 08:18:08 -04:00
parent 0de4624142
commit 239faec2f7
2 changed files with 2 additions and 5 deletions

View file

@ -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;

View file

@ -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);
}