formatting

This commit is contained in:
Matt Caimi 2023-11-09 10:51:33 -05:00
parent d781b7fdad
commit effe8b4d89

View file

@ -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);