We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 782a8ba commit 85c1f73Copy full SHA for 85c1f73
app/code/Magento/Checkout/view/frontend/web/js/view/shipping.js
@@ -259,7 +259,8 @@ define([
259
rates: shippingService.getShippingRates(),
260
isLoading: shippingService.isLoading,
261
isSelected: ko.computed(function () {
262
- return checkoutData.getSelectedShippingRate() ? checkoutData.getSelectedShippingRate() :
+ const selectedShippingMethod = checkoutData.getSelectedShippingRate();
263
+ return selectedShippingMethod ? selectedShippingMethod :
264
quote.shippingMethod() ?
265
quote.shippingMethod()['carrier_code'] + '_' + quote.shippingMethod()['method_code'] :
266
null;
0 commit comments