File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,8 @@ define([
266
266
loginFormSelector = 'form[data-role=email-with-possible-login]' ,
267
267
emailValidationResult = customer . isLoggedIn ( ) ,
268
268
field ,
269
- countryIndexedOptions = registry . get (
270
- this . parentName + '.shippingAddress.shipping-address-fieldset.country_id'
271
- ) . indexedOptions ,
269
+ country = registry . get ( this . parentName + '.shippingAddress.shipping-address-fieldset.country_id' ) ,
270
+ countryIndexedOptions = country . indexedOptions ,
272
271
option = countryIndexedOptions [ quote . shippingAddress ( ) . countryId ] ,
273
272
messageContainer = registry . get ( 'checkout.errors' ) . messageContainer ;
274
273
@@ -323,12 +322,14 @@ define([
323
322
shippingAddress [ 'save_in_address_book' ] = 1 ;
324
323
}
325
324
selectShippingAddress ( shippingAddress ) ;
326
- } else if ( customer . isLoggedIn ( )
327
- && option
328
- && option [ 'is_region_required' ]
329
- && ! quote . shippingAddress ( ) . region
325
+ } else if ( customer . isLoggedIn ( ) &&
326
+ option &&
327
+ option [ 'is_region_required' ] &&
328
+ ! quote . shippingAddress ( ) . region
330
329
) {
331
- messageContainer . addErrorMessage ( { message : $t ( 'Please specify a regionId in shipping address.' ) } ) ;
330
+ messageContainer . addErrorMessage ( {
331
+ message : $t ( 'Please specify a regionId in shipping address.' )
332
+ } ) ;
332
333
333
334
return false ;
334
335
}
You can’t perform that action at this time.
0 commit comments