Skip to content

Commit

Permalink
feat(orders): render promotion from the discount engine
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Nov 8, 2024
1 parent fd33ac7 commit 005e5ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/orders/src/components/OrderSummary/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export function renderDiscounts(order: Order): JSX.Element | null {
free_shipping_promotions: undefined,
percentage_discount_promotions: undefined,
buy_x_pay_y_promotions: undefined,
flex_promotions: undefined
flex_promotions: undefined,
// @ts-expect-error TODO: Remove this line when the SDK is fixed
discount_engine_items: undefined
} satisfies Record<PromotionItemType, undefined>) as ItemType[]

const promotionLineItems =
Expand Down

0 comments on commit 005e5ff

Please sign in to comment.