diff --git a/src/view/frontend/web/js/mixin/select-shipping-method-mixin.js b/src/view/frontend/web/js/mixin/select-shipping-method-mixin.js index a20ad72..3b0048c 100644 --- a/src/view/frontend/web/js/mixin/select-shipping-method-mixin.js +++ b/src/view/frontend/web/js/mixin/select-shipping-method-mixin.js @@ -42,8 +42,8 @@ define([ var payload = { addressInformation: { 'shipping_address': quote.shippingAddress(), - 'shipping_method_code': shippingMethod['method_code'], - 'shipping_carrier_code': shippingMethod['carrier_code'] + 'shipping_method_code': shippingMethod ? shippingMethod['method_code'] : null, + 'shipping_carrier_code': shippingMethod ? shippingMethod['carrier_code'] : null } }; @@ -64,4 +64,4 @@ define([ ); }; } -}); \ No newline at end of file +});