Merge pull request #170 from Safelite/feature/digital/SSR-270

Feature/digital/ssr 270
This commit is contained in:
katiekroell 2023-02-21 16:10:07 -05:00 committed by GitHub
commit 1af2437a20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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