Skip to content

Commit 5c606ce

Browse files
committed
fix: pass discoutns by coupon or utm with filter by domain when no domain passed
1 parent 3465eb3 commit 5c606ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

functions/lib/helpers.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ const getValidDiscountRules = (discountRules, params, itemsForKit) => {
7272
return false
7373
}
7474
if (rule.domain && rule.domain !== params.domain) {
75-
return false
75+
if (!checkOpenPromotion(rule) || params.domain) {
76+
return false
77+
}
7678
}
7779
if (
7880
Array.isArray(itemsForKit) &&

0 commit comments

Comments
 (0)