Skip to content

Commit

Permalink
fix(custom-shipping): Properly proceeding on checked shipping rules a…
Browse files Browse the repository at this point in the history
…rray
  • Loading branch information
leomp12 committed May 18, 2024
1 parent fd87f61 commit 370aeb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const calculateShipping = async (modBody: AppModuleBody<'calculate_shippi
shipping_services: [],
};
const shippingRules = appData.shipping_rules;
if (!Array.isArray(shippingRules) || shippingRules.length) {
if (!Array.isArray(shippingRules) || !shippingRules.length) {
// Anything to do without shipping rules
return response;
}
Expand Down

0 comments on commit 370aeb7

Please sign in to comment.