Merge pull request #155 from Safelite/feature/Digital/SSR-210

removed hardcode value
This commit is contained in:
Jason Wheeler 2023-02-06 13:41:38 -05:00 committed by GitHub
commit c4d37a0d11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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