diff --git a/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue b/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue
index 09d9ddc15..a77bde39d 100644
--- a/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue
+++ b/src/layouts/quote/afterpay-modal-banner/afterpay-modal-banner.vue
@@ -52,9 +52,7 @@ export default {
name: "afterpay-modal-banner",
props: {
cmsWidgetName: String,
- availableLineItems: Array,
lineItems: Array,
- activePromos: null,
},
data() {
return {};
@@ -65,9 +63,6 @@ export default {
getInlineAltText,
},
computed: {
- nullSafeLineItems() {
- return this.availableLineItems ?? [];
- },
imageUrl() {
return this.getCmsContent(this.cmsWidgetName, "Image");
},
@@ -81,8 +76,9 @@ export default {
return this.getCmsContent(this.cmsWidgetName, "SubheaderText");
},
afterpayPrice() {
+ const allLineItems = getArrayOfAllLineItems(this.lineItems);
let price = baseMixin.methods.getTierOnePackagePrice(
- baseMixin.methods.filterOutFees(this.nullSafeLineItems)
+ baseMixin.methods.filterOutFees(allLineItems)
);
let vapsLineItemsForSelectedPackage = this.lineItems.vaps;
@@ -90,9 +86,11 @@ export default {
price += baseMixin.methods.getTotalLineItemPrice(lineItem);
});
- if (this.activePromos) {
- let allLineItems = getArrayOfAllLineItems(this.lineItems);
- const promos = getPromosThatMatchLineItemsOnOrder(this.activePromos, allLineItems);
+ if (this.lineItems.promos) {
+ const promos = getPromosThatMatchLineItemsOnOrder(
+ this.lineItems.promos,
+ allLineItems
+ );
promos.forEach((promo) => {
price += baseMixin.methods.getTotalLineItemPrice(promo);
});
diff --git a/src/layouts/quote/quote.vue b/src/layouts/quote/quote.vue
index d3553dfb4..8f9d256e0 100644
--- a/src/layouts/quote/quote.vue
+++ b/src/layouts/quote/quote.vue
@@ -45,8 +45,6 @@