Merge pull request #1858 from Safelite/feature/Digital/CSR-2097
CSR-2097
This commit is contained in:
commit
c93cd9fe2a
1 changed files with 16 additions and 4 deletions
|
|
@ -509,17 +509,25 @@ export default {
|
|||
this.$route
|
||||
);
|
||||
},
|
||||
hasSubmittedOrder() {
|
||||
return this.$store.getters.hasSubmittedOrder;
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
damageInfo() {
|
||||
return this.$store.getters.damage;
|
||||
},
|
||||
isInsurance() {
|
||||
return this.$store.getters.payment.isInsurance;
|
||||
return this.hasSubmittedOrder()
|
||||
? this.$store.getters.submittedOrder.payment.isInsurance
|
||||
: this.$store.getters.payment.isInsurance;
|
||||
},
|
||||
isNoComp() {
|
||||
return this.$store.getters.policy.isNoComp;
|
||||
return this.hasSubmittedOrder()
|
||||
? this.$store.getters.submittedOrder.policy.isNoComp
|
||||
: this.$store.getters.policy.isNoComp;
|
||||
},
|
||||
|
||||
hasVapsInCart() {
|
||||
if (this.lineItems?.vaps?.length > 0) {
|
||||
return true;
|
||||
|
|
@ -531,11 +539,15 @@ export default {
|
|||
if (this.isNoComp) {
|
||||
return coverageStatus.NOCOMP;
|
||||
} else {
|
||||
return this.$store.getters.payment.insuranceCoverage.coverageStatus;
|
||||
return this.hasSubmittedOrder()
|
||||
? this.$store.getters.submittedOrder.payment.insuranceCoverage.coverageStatus
|
||||
: this.$store.getters.payment.insuranceCoverage.coverageStatus;
|
||||
}
|
||||
},
|
||||
currentDeductible() {
|
||||
return this.$store.getters.policy.currentDeductible;
|
||||
return this.hasSubmittedOrder()
|
||||
? this.$store.getters.submittedOrder.policy.currentDeductible
|
||||
: this.$store.getters.policy.currentDeductible;
|
||||
},
|
||||
insuranceCompanyName() {
|
||||
return this.$store.getters.policy.insuranceCompanyName;
|
||||
|
|
|
|||
Loading…
Reference in a new issue