More tidying

This commit is contained in:
Michaela Brydon 2024-03-28 15:20:42 -04:00
parent c3228fb7a8
commit 8def9a7d07

View file

@ -296,8 +296,10 @@ export default {
return this.getCartItemForVapsPart(partTypeStrings.RAIN_DEFENSE);
},
packagePrice() {
const vapsInPackage = this.vapsInOrder.filter((vap) => this.partTypesInServicePackage.includes(vap.partType));
return getPriceOfLineItems(vapsInPackage);
return this.servicePackageCartItems.reduce(
(accumulator, cartItem) => accumulator + cartItem.subTotal,
0
);
},
amountDueLabel() {
return this.getCmsContent(this.widget.amountDue, widgetFields.TEXT_BLOCK_WIDGET.TEXT);