From 5f9ce0f36c30452a8b4076c590d2cca8d6c2347c Mon Sep 17 00:00:00 2001 From: Minojhini Valaiyapathi Date: Wed, 9 Apr 2025 14:37:14 -0400 Subject: [PATCH 1/2] CASH-353 - Added null check --- src/layouts/address-lookup/address-lookup.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/layouts/address-lookup/address-lookup.vue b/src/layouts/address-lookup/address-lookup.vue index 6c24c2076..66f03547e 100644 --- a/src/layouts/address-lookup/address-lookup.vue +++ b/src/layouts/address-lookup/address-lookup.vue @@ -301,13 +301,15 @@ export default { return this.$refs.navbar.removeLoader(); } this.displayInvalidZipAlert = false; - const closestShops = await this.findClosestApplicableShops( - this.serviceZipCode, - this.carId - ); - this.displayNoServiceAlert = !closestShops?.data?.providers?.length; - if (this.displayNoServiceAlert) { - return this.$refs.navbar.removeLoader(); + if (this.serviceZipCode != null) { + const closestShops = await this.findClosestApplicableShops( + this.serviceZipCode, + this.carId + ); + this.displayNoServiceAlert = !closestShops?.data?.providers?.length; + if (this.displayNoServiceAlert) { + return this.$refs.navbar.removeLoader(); + } } const carsFound = resultMap.vinLookupResponse.vinVehicles; From b62d3b90660be0f0be6931f7c63c4d41ac545897 Mon Sep 17 00:00:00 2001 From: Matt Caimi Date: Thu, 10 Apr 2025 10:13:29 -0400 Subject: [PATCH 2/2] CASH-491 load isBigTruck in updateStateWithOrderInformation --- src/store/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/index.js b/src/store/index.js index 9fec43a77..e6c0585c4 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -678,6 +678,9 @@ export const mutations = { imageUrl: sessionInformation.order.vehicle?.imageUrl, imageVifNumber: sessionInformation.order.vehicle?.imageVifNumber, imageColor: sessionInformation.order.vehicle?.imageVifColor, + vehicleSubType: sessionInformation.order.vehicle?.vehicleSubType, + vehicleSpecialClass: sessionInformation.order.vehicle?.vehicleSpecialClass, + isBigTruck: sessionInformation.order.vehicle?.isBigTruck, }); state.order.damage.glassToReplace = sessionInformation.order.damage.glassToReplace;