From 366d60685a7fdf7e592b1723a30b280e001581ce Mon Sep 17 00:00:00 2001 From: Kroell Date: Sat, 18 Feb 2023 12:36:31 -0500 Subject: [PATCH] change where zip is pulled for getParts method --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index db172dde..e7919735 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -362,7 +362,7 @@ export const useMainStore = defineStore({ const carId = vehicle.carId; const glassArray = damage.glassToReplace; const resultsArray = damage.partQuestionAnswers; - const zipCode = order.serviceLocation.zipCode; + const zipCode = vehicle.registration.zipCode ? vehicle.registration.zipCode : order.customer.address.zipCode; const vin = vehicle.vin; // create a new array to avoid mutating state