Merge branch 'develop' into feature/digital/SSR-207

This commit is contained in:
Kroell 2023-02-06 15:12:14 -05:00
commit 2cf1f34044
2 changed files with 2 additions and 4 deletions

View file

@ -197,6 +197,7 @@ export default {
registrationInfo: {
licensePlate: this.licensePlate,
state: this.licenseState,
zipCode: useMainStore().vehicle.registration.zipCode,
},
},
false

View file

@ -329,10 +329,7 @@ export const useMainStore = defineStore({
const carId = vehicle.carId;
const glassArray = damage.glassToReplace;
// zip code is not available yet at the time of writing
// const zipCode = order.serviceLocation.zipCode;
// To Do: replace with actual zip code
const zipCode = '43215';
const zipCode = vehicle.registration.zipCode ? vehicle.registration.zipCode : order.customer.address.zipCode;
const vin = vehicle.vin;
// create a new array to avoid mutating state