From 2be77705035d2b82c701a5a8c1ef04a01c57ec88 Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 7 Apr 2023 11:22:06 -0400 Subject: [PATCH 1/2] Added providerNumber datum and now nulling it out when service-zip changes --- src/layouts/service-location/service-location.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index cbdebd397..45a5011ef 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -135,6 +135,7 @@ export default { mobileFeePart: null, zipContainsMilitaryBase: false, selectedAppointmentType: null, + providerNumber: null, }; }, async beforeRouteEnter(to, from, next) { @@ -192,6 +193,7 @@ export default { if (newValue.zipCode !== this.zipCode) { this.resetMobileLocation(); this.selectedAppointmentType = null; + this.providerNumber = null; } this.state = newValue.state; From fd7c577df6e57677e3fdb9f05a035ee7fe09d4fd Mon Sep 17 00:00:00 2001 From: Leah Schumann Date: Fri, 7 Apr 2023 11:40:46 -0400 Subject: [PATCH 2/2] Added providerNumber datum and now nulling it out when service-zip changes from changing the mobile location zip --- src/layouts/service-location/service-location.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/layouts/service-location/service-location.vue b/src/layouts/service-location/service-location.vue index 45a5011ef..1e5ffa384 100644 --- a/src/layouts/service-location/service-location.vue +++ b/src/layouts/service-location/service-location.vue @@ -222,11 +222,11 @@ export default { this.zipCode = newValue.addressQuestions.zipCode; this.isVehicleProtected = newValue.isVehicleProtected; - if ( - newValue.zipCode !== this.zipCode && - !this.selectedAppointmentType == "Mobile" - ) { - this.selectedAppointmentType = null; + if (newValue.zipCode !== this.zipCode) { + if (!this.selectedAppointmentType == "Mobile") { + this.selectedAppointmentType = null; + } + this.providerNumber = null; } }, },