diff --git a/src/layouts/coverage-statement/coverage-statement.vue b/src/layouts/coverage-statement/coverage-statement.vue index b41b7855..4dbad4d8 100644 --- a/src/layouts/coverage-statement/coverage-statement.vue +++ b/src/layouts/coverage-statement/coverage-statement.vue @@ -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() {