File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -299,16 +299,17 @@ define([
299
299
this . source . set ( 'params.invalid' , false ) ;
300
300
this . triggerShippingDataValidateEvent ( ) ;
301
301
302
+ if ( ! quote . shippingMethod ( ) [ 'method_code' ] ) {
303
+ this . errorValidationMessage (
304
+ $t ( 'The shipping method is missing. Select the shipping method and try again.' )
305
+ ) ;
306
+ }
307
+
302
308
if ( emailValidationResult &&
303
309
this . source . get ( 'params.invalid' ) ||
304
310
! quote . shippingMethod ( ) [ 'method_code' ] ||
305
311
! quote . shippingMethod ( ) [ 'carrier_code' ]
306
312
) {
307
- if ( ! quote . shippingMethod ( ) [ 'method_code' ] ) { //eslint-disable-line max-depth
308
- this . errorValidationMessage (
309
- $t ( 'The shipping method is missing. Select the shipping method and try again.' )
310
- ) ;
311
- }
312
313
this . focusInvalid ( ) ;
313
314
314
315
return false ;
You can’t perform that action at this time.
0 commit comments