Skip to content

Commit 9f6b587

Browse files
AC-2044::Cart Price Rule with shipping method set as condition is not-unit test fix
1 parent d62c612 commit 9f6b587

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 quote.shippingMethod() ?
262+
return checkoutData.getSelectedShippingRate() ? checkoutData.getSelectedShippingRate() :
263+
quote.shippingMethod() ?
263264
quote.shippingMethod()['carrier_code'] + '_' + quote.shippingMethod()['method_code'] :
264265
null;
265266
}),

0 commit comments

Comments
 (0)