diff --git a/packages/merch-helpers/src/lib/price.ts b/packages/merch-helpers/src/lib/price.ts index 02e61f58..86651a52 100644 --- a/packages/merch-helpers/src/lib/price.ts +++ b/packages/merch-helpers/src/lib/price.ts @@ -66,7 +66,8 @@ export const calculatePricing = ( discountedPrice: itemPrice, }; } - for (const discount of promotion.discounts) { + const discountsArray = promotion.discounts as unknown as Promotion["discounts"][]; + for (const discount of discountsArray) { if (discount.appliesTo && !discount.appliesTo.includes(item.id)) { continue; }