Formatting

This commit is contained in:
Scott Kiener 2023-11-17 10:55:26 -05:00
parent ad508dd639
commit 66e8b99feb

View file

@ -182,10 +182,12 @@ export default {
pricedLineItemsToTax, pricedLineItemsToTax,
"payment-method" "payment-method"
); );
// Add newly validated promos to the array to get taxed // Add newly validated promos to the array to get taxed
const newValidatedPromos = validatePromoResponse?.orderPromos ?? []; const newValidatedPromos = validatePromoResponse?.orderPromos ?? [];
newValidatedPromos.push(...(revalidatePromoResponse ? revalidatePromoResponse.promoLineItems : [])); newValidatedPromos.push(
...(revalidatePromoResponse ? revalidatePromoResponse.promoLineItems : [])
);
pricedLineItemsToTax.push(...newValidatedPromos); pricedLineItemsToTax.push(...newValidatedPromos);
// End of promo logic // End of promo logic