Formatting
This commit is contained in:
parent
ad508dd639
commit
66e8b99feb
1 changed files with 4 additions and 2 deletions
|
|
@ -182,10 +182,12 @@ export default {
|
|||
pricedLineItemsToTax,
|
||||
"payment-method"
|
||||
);
|
||||
|
||||
|
||||
// Add newly validated promos to the array to get taxed
|
||||
const newValidatedPromos = validatePromoResponse?.orderPromos ?? [];
|
||||
newValidatedPromos.push(...(revalidatePromoResponse ? revalidatePromoResponse.promoLineItems : []));
|
||||
newValidatedPromos.push(
|
||||
...(revalidatePromoResponse ? revalidatePromoResponse.promoLineItems : [])
|
||||
);
|
||||
pricedLineItemsToTax.push(...newValidatedPromos);
|
||||
// End of promo logic
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue