SSR-1167 Coverage Statement cleanup

This commit is contained in:
Josh Dassinger 2024-05-22 09:11:19 -05:00
parent f63c4e0c7a
commit e6bfe4af7a

View file

@ -365,18 +365,18 @@ export default {
return !!useMainStore().vehicle.carId;
},
async initializeComponent() {
// TODO this should be determined based on the result of the ITAC price call
// TODO it seems that ITAC now requires claim registration calls. If this call fails
if (this.mainStore.isDeductible && this.deductibleValue > this.totalServicePrice) {
this.mainStore.updateCoverageType(coverageType.ITAC);
}
if (this.shouldRegisterClaim) {
await this.mainStore.registerClaim();
} else if (!this.mainStore.isClaimRegistrationRequired) {
this.mainStore.updateCoverageStatus(coverageStatuses.VERIFIED);
}
// TODO this should be determined based on the result of the ITAC price call
// TODO it seems that ITAC now requires claim registration calls. If this call fails
console.log(`${this.mainStore.isDeductible} - ${this.deductibleValue} > ${this.totalServicePrice}`);
if (this.mainStore.isDeductible && this.deductibleValue > this.totalServicePrice) {
console.log('Do update0');
this.mainStore.updateCoverageType(coverageType.ITAC);
}
showIssLoadingModal(false);
},
async navigateForward() {