Skip to content

Commit 85c1f73

Browse files
AC-2044::Cart Price Rule with shipping method set as condition is not working Magento-fix unit tests failure
1 parent 782a8ba commit 85c1f73

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ define([
259259
rates: shippingService.getShippingRates(),
260260
isLoading: shippingService.isLoading,
261261
isSelected: ko.computed(function () {
262-
return checkoutData.getSelectedShippingRate() ? checkoutData.getSelectedShippingRate() :
262+
const selectedShippingMethod = checkoutData.getSelectedShippingRate();
263+
return selectedShippingMethod ? selectedShippingMethod :
263264
quote.shippingMethod() ?
264265
quote.shippingMethod()['carrier_code'] + '_' + quote.shippingMethod()['method_code'] :
265266
null;

0 commit comments

Comments
 (0)