Browse Source

fix(dev-server): Fix multivendor shipping elig checker edge case

Michael Bromley 2 years ago
parent
commit
1faf5e3ed1

+ 1 - 1
packages/dev-server/example-plugins/multivendor-plugin/config/mv-shipping-eligibility-checker.ts

@@ -23,7 +23,7 @@ export const multivendorShippingEligibilityChecker = new ShippingEligibilityChec
             return false;
         }
         for (const line of order.lines) {
-            if (idsAreEqual(line.sellerChannelId, sellerChannel.id)) {
+            if (line.sellerChannelId && idsAreEqual(line.sellerChannelId, sellerChannel.id)) {
                 return true;
             }
         }