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([
299299 this . source . set ( 'params.invalid' , false ) ;
300300 this . triggerShippingDataValidateEvent ( ) ;
301301
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+
302308 if ( emailValidationResult &&
303309 this . source . get ( 'params.invalid' ) ||
304310 ! quote . shippingMethod ( ) [ 'method_code' ] ||
305311 ! quote . shippingMethod ( ) [ 'carrier_code' ]
306312 ) {
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- }
312313 this . focusInvalid ( ) ;
313314
314315 return false ;
You can’t perform that action at this time.
0 commit comments