From 539ce94277e063b9d401e78a0cfb96dd82bfb7e9 Mon Sep 17 00:00:00 2001 From: scottkiener-at-safelite Date: Tue, 31 Mar 2026 15:01:59 -0400 Subject: [PATCH] Update the mobile fee when a new mobile zip is called --- .../service-location/service-location.vue | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/layouts/schedule-page/service-location/service-location.vue b/src/layouts/schedule-page/service-location/service-location.vue index eeee4466..ef07e7fe 100644 --- a/src/layouts/schedule-page/service-location/service-location.vue +++ b/src/layouts/schedule-page/service-location/service-location.vue @@ -547,12 +547,19 @@ export default { this.setContainsMilitaryBase(zipCodeData.containsMilitaryBase); const serviceabilityDetailsPromise = this.mainStore.getServiceabilityDetails(this.mobileZipCode); - await serviceabilityDetailsPromise.then((result) => { - const details = result.data; - if (details) { - this.setServiceabilityDetails(details); - } - }); + const mobileFeePromise = getPricedMobileFeePart(this.mobileZipCode); + + const [serviceabilityDetailsResult, mobileFeeResult] = await Promise.all([ + serviceabilityDetailsPromise, + mobileFeePromise + ]); + + const serviceabilityDetails = serviceabilityDetailsResult.data; + if (serviceabilityDetails) { + this.setServiceabilityDetails(serviceabilityDetails); + } + + this.mobileFeePart = mobileFeeResult?.data ?? null; const providersPromise = useMainStore().getSafeliteProviders(this.mobileZipCode); await providersPromise.then((result) => {