Merge pull request #1867 from Safelite/feature/CSR-2099-ajc

CSR-2099: possible fix that treats NoComp and ITAC the same as far as cart appearance
This commit is contained in:
AdamCaouetteSafelite 2024-05-24 10:00:25 -04:00 committed by GitHub
commit 60de537226
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -527,7 +527,11 @@ export default {
? this.$store.getters.submittedOrder.policy.isNoComp
: this.$store.getters.policy.isNoComp;
},
isItac() {
return this.hasSubmittedOrder()
? this.$store.getters.submittedOrder.policy.isItac
: this.$store.getters.policy.isItac;
},
hasVapsInCart() {
if (this.lineItems?.vaps?.length > 0) {
return true;
@ -536,7 +540,7 @@ export default {
},
showInsuranceCoverageAs() {
if (!this.isInsurance) return null;
if (this.isNoComp) {
if (this.isNoComp || this.isItac) {
return coverageStatus.NOCOMP;
} else {
return this.hasSubmittedOrder()