Skip to content

Commit cce60a9

Browse files
author
Oleksii Korshenko
committed
Merge remote-tracking branch 'south/MAGETWO-46891-2.0' into 2.0
2 parents 5e1de58 + 2e6c0bf commit cce60a9

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/address-converter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ define(
1212
function($, address, customerData, mageUtils) {
1313
'use strict';
1414
var countryData = customerData.get('directory-data');
15+
if (_.isEmpty(countryData())) {
16+
countryData(customerData.reload(['directory-data'], false));
17+
}
1518

1619
return {
1720
/**

app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ define(
5050
});
5151
addressOptions.push(newAddressOption);
5252

53+
if (_.isEmpty(countryData())) {
54+
countryData(customerData.reload(['directory-data'], false));
55+
}
56+
5357
return Component.extend({
5458
defaults: {
5559
template: 'Magento_Checkout/billing-address'

app/code/Magento/Checkout/view/frontend/web/js/view/shipping-address/address-renderer/default.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ define([
1515
], function($, ko, Component, selectShippingAddressAction, quote, formPopUpState, checkoutData, customerData) {
1616
'use strict';
1717
var countryData = customerData.get('directory-data');
18+
if (_.isEmpty(countryData())) {
19+
countryData(customerData.reload(['directory-data'], false));
20+
}
21+
1822
return Component.extend({
1923
defaults: {
2024
template: 'Magento_Checkout/shipping-address/address-renderer/default'

app/code/Magento/Checkout/view/frontend/web/js/view/shipping-information/address-renderer/default.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ define([
99
], function(Component, customerData) {
1010
'use strict';
1111
var countryData = customerData.get('directory-data');
12+
if (_.isEmpty(countryData())) {
13+
countryData(customerData.reload(['directory-data'], false));
14+
}
15+
1216
return Component.extend({
1317
defaults: {
1418
template: 'Magento_Checkout/shipping-information/address-renderer/default'

0 commit comments

Comments
 (0)