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([
282282 option = _ . isObject ( this . countryOptions ) && this . countryOptions [ quote . shippingAddress ( ) . countryId ] ,
283283 messageContainer = registry . get ( 'checkout.errors' ) . messageContainer ;
284284
285- if ( ! quote . shippingMethod ( ) || ! quote . shippingMethod ( ) [ 'method_code' ] ) {
285+ if ( ! quote . shippingMethod ( ) ) {
286286 this . errorValidationMessage (
287287 $t ( 'The shipping method is missing. Select the shipping method and try again.' )
288288 ) ;
@@ -304,6 +304,11 @@ define([
304304 ! quote . shippingMethod ( ) [ 'method_code' ] ||
305305 ! quote . shippingMethod ( ) [ 'carrier_code' ]
306306 ) {
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+ }
307312 this . focusInvalid ( ) ;
308313
309314 return false ;
You can’t perform that action at this time.
0 commit comments