Skip to content

Commit 8910467

Browse files
committed
[Forwardport] Fixed undefinded shipping method name issue #17492
1 parent 754b91a commit 8910467

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/view/summary

1 file changed

+4
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/summary/shipping.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,13 @@ define([
2929
}
3030
shippingMethod = quote.shippingMethod();
3131

32-
if (typeof (shippingMethod['method_title']) !== 'undefined') {
32+
if (typeof shippingMethod['method_title'] !== 'undefined') {
3333
shippingMethodTitle = ' - ' + shippingMethod['method_title'];
3434
}
3535

36-
return shippingMethod ? shippingMethod['carrier_title'] + shippingMethodTitle : shippingMethod['carrier_title'];
36+
return shippingMethod ?
37+
shippingMethod['carrier_title'] + shippingMethodTitle :
38+
shippingMethod['carrier_title'];
3739
},
3840

3941
/**

0 commit comments

Comments
 (0)