formatting
This commit is contained in:
parent
d781b7fdad
commit
effe8b4d89
1 changed files with 3 additions and 3 deletions
|
|
@ -302,7 +302,7 @@ export default {
|
||||||
const lineItemsFromStore = deepClone(store.getters.order.lineItems);
|
const lineItemsFromStore = deepClone(store.getters.order.lineItems);
|
||||||
const glassParts = lineItemsFromStore.glassParts ?? [];
|
const glassParts = lineItemsFromStore.glassParts ?? [];
|
||||||
const supportingItems = lineItemsFromStore.supportingItems ?? [];
|
const supportingItems = lineItemsFromStore.supportingItems ?? [];
|
||||||
|
|
||||||
const lineItemsToTax = [
|
const lineItemsToTax = [
|
||||||
resultMap.rainDefense,
|
resultMap.rainDefense,
|
||||||
...supportingItems,
|
...supportingItems,
|
||||||
|
|
@ -330,7 +330,7 @@ export default {
|
||||||
"payment"
|
"payment"
|
||||||
);
|
);
|
||||||
|
|
||||||
const newValidatedPromos = validatePromoResponse?.orderPromos ?? [];
|
const newValidatedPromos = validatePromoResponse?.orderPromos ?? [];
|
||||||
|
|
||||||
pricedLineItemsToTax.push(...newValidatedPromos);
|
pricedLineItemsToTax.push(...newValidatedPromos);
|
||||||
// End of promo logic
|
// End of promo logic
|
||||||
|
|
@ -354,7 +354,7 @@ export default {
|
||||||
// and rebuild the original structure.
|
// and rebuild the original structure.
|
||||||
const lineItems = mapTaxedLineItemsToStoreFormat(taxedLineItems, lineItemsFromStore);
|
const lineItems = mapTaxedLineItemsToStoreFormat(taxedLineItems, lineItemsFromStore);
|
||||||
const taxedVaps = mapTaxedLineItemsToStoreFormat(taxedLineItems, availableVaps);
|
const taxedVaps = mapTaxedLineItemsToStoreFormat(taxedLineItems, availableVaps);
|
||||||
|
|
||||||
// Add items that were not in the store yet but added via query string promo validation
|
// Add items that were not in the store yet but added via query string promo validation
|
||||||
lineItems.promos = lineItems.promos ?? [];
|
lineItems.promos = lineItems.promos ?? [];
|
||||||
lineItems.promos.push(...newValidatedPromos);
|
lineItems.promos.push(...newValidatedPromos);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue