Преглед на файлове

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

Michael Bromley преди 2 години
родител
ревизия
1faf5e3ed1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/dev-server/example-plugins/multivendor-plugin/config/mv-shipping-eligibility-checker.ts

+ 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;
             return false;
         }
         }
         for (const line of order.lines) {
         for (const line of order.lines) {
-            if (idsAreEqual(line.sellerChannelId, sellerChannel.id)) {
+            if (line.sellerChannelId && idsAreEqual(line.sellerChannelId, sellerChannel.id)) {
                 return true;
                 return true;
             }
             }
         }
         }