Skip to content

Commit

Permalink
Fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceman03 committed Jul 15, 2024
1 parent 3a0117d commit 2af769d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/merch-helpers/src/lib/price.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2af769d

Please sign in to comment.