diff --git a/src/layouts/payment/payment.vue b/src/layouts/payment/payment.vue index 1886d4aa0..a0c75fe82 100644 --- a/src/layouts/payment/payment.vue +++ b/src/layouts/payment/payment.vue @@ -302,7 +302,7 @@ export default { const lineItemsFromStore = deepClone(store.getters.order.lineItems); const glassParts = lineItemsFromStore.glassParts ?? []; const supportingItems = lineItemsFromStore.supportingItems ?? []; - + const lineItemsToTax = [ resultMap.rainDefense, ...supportingItems, @@ -330,7 +330,7 @@ export default { "payment" ); - const newValidatedPromos = validatePromoResponse?.orderPromos ?? []; + const newValidatedPromos = validatePromoResponse?.orderPromos ?? []; pricedLineItemsToTax.push(...newValidatedPromos); // End of promo logic @@ -354,7 +354,7 @@ export default { // and rebuild the original structure. const lineItems = mapTaxedLineItemsToStoreFormat(taxedLineItems, lineItemsFromStore); const taxedVaps = mapTaxedLineItemsToStoreFormat(taxedLineItems, availableVaps); - + // Add items that were not in the store yet but added via query string promo validation lineItems.promos = lineItems.promos ?? []; lineItems.promos.push(...newValidatedPromos);