Skip to content

Commit 2e8a9aa

Browse files
MC-36088: Non-relevant shipping method available for checkout
1 parent 085c331 commit 2e8a9aa

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ define([
282282
option = _.isObject(this.countryOptions) && this.countryOptions[quote.shippingAddress().countryId],
283283
messageContainer = registry.get('checkout.errors').messageContainer;
284284

285-
if (!quote.shippingMethod()) {
285+
if (!quote.shippingMethod() || !quote.shippingMethod()['method_code']) {
286286
this.errorValidationMessage(
287287
$t('The shipping method is missing. Select the shipping method and try again.')
288288
);

0 commit comments

Comments
 (0)