From 455e7c3c5d4e753221011f7aba78c81bc32f5858 Mon Sep 17 00:00:00 2001 From: Pascal Kaufmann Date: Fri, 27 Dec 2024 18:50:22 +0100 Subject: [PATCH] Fix product discount --- packages/plugins/src/pricing/product-discount.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/plugins/src/pricing/product-discount.ts b/packages/plugins/src/pricing/product-discount.ts index d1d8bd593..8f32f8677 100644 --- a/packages/plugins/src/pricing/product-discount.ts +++ b/packages/plugins/src/pricing/product-discount.ts @@ -66,6 +66,8 @@ const ProductDiscount: IProductPricingAdapter = { calculate: async () => { params.discounts.forEach((discount) => { + if (!discount) return; + const { configuration } = discount; const resolvedConfiguration = configuration.customPriceConfigurationResolver