File tree Expand file tree Collapse file tree 1 file changed +17
-8
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view Expand file tree Collapse file tree 1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -314,14 +314,23 @@ function (
314
314
updatePaymentMethods : function ( ) {
315
315
var payload ;
316
316
317
- payload = {
318
- addressInformation : {
319
- 'shipping_address' : quote . shippingAddress ( ) ,
320
- 'billing_address' : quote . billingAddress ( ) ,
321
- 'shipping_method_code' : quote . shippingMethod ( ) [ 'method_code' ] ,
322
- 'shipping_carrier_code' : quote . shippingMethod ( ) [ 'carrier_code' ]
323
- }
324
- } ;
317
+ if ( quote . shippingMethod ( ) !== null ) {
318
+ payload = {
319
+ addressInformation : {
320
+ 'shipping_address' : quote . shippingAddress ( ) ,
321
+ 'billing_address' : quote . billingAddress ( ) ,
322
+ 'shipping_method_code' : quote . shippingMethod ( ) [ 'method_code' ] ,
323
+ 'shipping_carrier_code' : quote . shippingMethod ( ) [ 'carrier_code' ]
324
+ }
325
+ } ;
326
+ } else {
327
+ payload = {
328
+ addressInformation : {
329
+ 'shipping_address' : quote . shippingAddress ( ) ,
330
+ 'billing_address' : quote . billingAddress ( ) ,
331
+ }
332
+ } ;
333
+ }
325
334
326
335
payloadExtender ( payload ) ;
327
336
You can’t perform that action at this time.
0 commit comments