From c27b3d612c54f21f83a0faab38144e1f6c63ad1c Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Wed, 14 Jun 2023 14:06:17 -0400 Subject: [PATCH] Catch missed path for resetting when zip changes --- src/store/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index ec015d9a6..1ec9a264d 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1869,6 +1869,10 @@ export const actions = { saveServiceLocation(context, serviceLocationInfo) { if (context.state.order.serviceLocationInfo) { if (serviceLocationInfo.zipCode !== context.state.order.serviceLocationInfo.zipCode) { + context.commit(storeMutations.RESET_SERVICE_LOCATION_APPOINTMENT_TYPE); + context.commit(storeMutations.RESET_SERVICE_LOCATION_PROVIDER); + context.commit(storeMutations.RESET_SERVICE_LOCATION_MOBILE_ADDRESS); + context.commit(storeMutations.RESET_SCHEDULE); }