File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ define([
282
282
option = _ . isObject ( this . countryOptions ) && this . countryOptions [ quote . shippingAddress ( ) . countryId ] ,
283
283
messageContainer = registry . get ( 'checkout.errors' ) . messageContainer ;
284
284
285
- if ( ! quote . shippingMethod ( ) || ! quote . shippingMethod ( ) [ 'method_code' ] ) {
285
+ if ( ! quote . shippingMethod ( ) ) {
286
286
this . errorValidationMessage (
287
287
$t ( 'The shipping method is missing. Select the shipping method and try again.' )
288
288
) ;
@@ -304,6 +304,11 @@ define([
304
304
! quote . shippingMethod ( ) [ 'method_code' ] ||
305
305
! quote . shippingMethod ( ) [ 'carrier_code' ]
306
306
) {
307
+ if ( ! quote . shippingMethod ( ) [ 'method_code' ] ) {
308
+ this . errorValidationMessage (
309
+ $t ( 'The shipping method is missing. Select the shipping method and try again.' )
310
+ ) ;
311
+ }
307
312
this . focusInvalid ( ) ;
308
313
309
314
return false ;
You can’t perform that action at this time.
0 commit comments