diff --git a/src/fmg-components/cart/cart.vue b/src/fmg-components/cart/cart.vue index 0249d5c16..c791e3941 100644 --- a/src/fmg-components/cart/cart.vue +++ b/src/fmg-components/cart/cart.vue @@ -303,12 +303,11 @@ export default { }, lineItemsWithoutRecal() { if (!this.lineItems || this.lineItems.length < 1) return; - if (!this.lineItems.supportingItems) return this.lineItems; const lineItemsCopy = deepClone(this.lineItems); - lineItemsCopy.supportingItems = baseMixin.methods.filterOutRecalibration( - lineItemsCopy.supportingItems - ); + lineItemsCopy.supportingItems = lineItemsCopy.supportingItems ? baseMixin.methods.filterOutRecalibration( + lineItemsCopy?.supportingItems + ) : []; return lineItemsCopy; }, showCoverageAsPending() { @@ -1000,6 +999,11 @@ export default { }, subTotal() { if (!this.lineItems || this.lineItems.length < 1) return; + if (this.isInsurance || !this.shouldHideRecalibration) { + console.log(" first this.lineItems: ", this.lineItems) + } else { + console.log(" 2nd this.lineItemsWithoutRecal: ", this.lineItemsWithoutRecal) + } return this.isInsurance || !this.shouldHideRecalibration ? baseMixin.methods.getSubTotal(this.lineItems) // calculate with recal (if on order) : baseMixin.methods.getSubTotal(this.lineItemsWithoutRecal); // calculated without recal