diff --git a/src/store/index.js b/src/store/index.js index c165d552..30163cba 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -298,6 +298,7 @@ export const useMainStore = defineStore({ isVerified: (state) => state.order.insuranceCoverage.coverageStatus === coverageStatuses.VERIFIED, isPendingClaimRegistration: (state) => state.order.insuranceCoverage.coverageStatus === coverageStatuses.PENDING, providerNumber: (state) => state.order.serviceLocation.provider.providerNumber || state.order.serviceLocation.defaultProviderNumber, + hasOemEndorsement: (state) => state.order.policy.endorsements?.indexOf('OEM Approved') !== -1 ?? false, eventBusItem: (state) => (eventCategory, eventSubCategory) => { const matchedEvent = state.applicationUser.eventBus.find(({ category, subCategory }) => category === eventCategory && subCategory === eventSubCategory); return matchedEvent?.eventValue; @@ -769,7 +770,8 @@ export const useMainStore = defineStore({ carId, glassPieces: glassArrayForPayload, zip: zipCode, - vin + vin, + oemEndorsementFlag: this.hasOemEndorsement } }); @@ -802,7 +804,8 @@ export const useMainStore = defineStore({ glassPieces: glassArrayForPayload, answerResults: resultsArrayForPayload, zip: zipCode, - vin + vin, + oemEndorsementFlag: this.hasOemEndorsement } }); @@ -1273,7 +1276,7 @@ export const useMainStore = defineStore({ policyZipCode: policy.policyZipCode, originalDeductible: this.order.originalDeductible, currentDeductible: this.order.currentDeductible, - OemEndorsement: policy.endorsements?.indexOf('OEM Approved') !== -1 ?? false, + OemEndorsement: this.hasOemEndorsement, noCoverage: this.isNoComp, isItac: this.isITAC },