File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model
dev/tests/js/jasmine/tests/app/code/Magento/Checkout/frontend/js/model Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ define([
2828 return {
2929 email : addressData . email ,
3030 countryId : addressData [ 'country_id' ] || addressData . countryId || window . checkoutConfig . defaultCountryId ,
31- regionId : regionId || addressData . regionId ,
31+ regionId : regionId || addressData . regionId || window . checkoutConfig . defaultRegionId ,
3232 regionCode : addressData . region ? addressData . region [ 'region_code' ] : null ,
3333 region : addressData . region ? addressData . region . region : null ,
3434 customerId : addressData [ 'customer_id' ] || addressData . customerId ,
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ define([
1414 beforeEach ( function ( ) {
1515
1616 window . checkoutConfig = {
17- defaultCountryId : 'US'
17+ defaultCountryId : 'US' ,
18+ defaultRegionId : '12'
1819 } ;
1920
2021 newCustomerAddress = NewCustomerAddress ;
@@ -27,6 +28,7 @@ define([
2728 it ( 'Check on empty object.' , function ( ) {
2829 var expected = {
2930 countryId : 'US' ,
31+ regionId : 12 ,
3032 regionCode : null ,
3133 region : null
3234 } ;
You can’t perform that action at this time.
0 commit comments