replacing policy.isITAC with isITAC
This commit is contained in:
parent
2b6ec3d7cf
commit
93bc1520a2
1 changed files with 5 additions and 5 deletions
|
|
@ -187,7 +187,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
showDeductibleCartItem() {
|
||||
return !useMainStore().isNoComp && !useMainStore().policy.isITAC;
|
||||
return !useMainStore().isNoComp && !useMainStore().isITAC;
|
||||
},
|
||||
deductible() {
|
||||
// Note: added as computed so it can be used in the template.
|
||||
|
|
@ -204,11 +204,11 @@ export default {
|
|||
return getPriceOfLineItems(this.baseServiceLineItems) ?? 0;
|
||||
},
|
||||
isUnverified() {
|
||||
return !useMainStore().isNoComp && !useMainStore().policy.isITAC
|
||||
return !useMainStore().isNoComp && !useMainStore().isITAC
|
||||
&& (this.deductible == null || !useMainStore().isVerifiedCoverageStatus);
|
||||
},
|
||||
subTotal() {
|
||||
const basePrice = !useMainStore().isNoComp && !useMainStore().policy.isITAC
|
||||
const basePrice = !useMainStore().isNoComp && !useMainStore().isITAC
|
||||
? this.deductible
|
||||
: this.baseServicePrice;
|
||||
const nonPackageCartItemsPrice = this.nonServicePackageCartItems?.reduce(
|
||||
|
|
@ -283,7 +283,7 @@ export default {
|
|||
return items;
|
||||
},
|
||||
nonServicePackageCartItems() {
|
||||
const vapPartTypesInOrder = Array.from(new Set(useMainStore().lineItems.vaps.map((vap) => vap.partType)));
|
||||
const vapPartTypesInOrder = Array.from(new Set(useMainStore().lineItems.vaps?.map((vap) => vap.partType) ?? []));
|
||||
const vapPartTypesInOrderButNotPackage = vapPartTypesInOrder
|
||||
.filter((partType) => !this.partTypesInServicePackage.includes(partType))
|
||||
?? [];
|
||||
|
|
@ -386,7 +386,7 @@ export default {
|
|||
return canBeVerifyingCoverage
|
||||
&& this.isUnverified
|
||||
&& !useMainStore().isNoComp
|
||||
&& !useMainStore().policy.isITAC
|
||||
&& !useMainStore().isITAC
|
||||
? VERIFYING_COVERAGE
|
||||
: formatAmountInDollars(amount);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue