Skip to content

Commit

Permalink
MAGETWO-99043: Shipping Methods Don't Load In IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
viktym committed Sep 30, 2019
1 parent 6f1a6f7 commit c15e194
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ define([
'jquery',
'Magento_Checkout/js/model/new-customer-address',
'Magento_Customer/js/customer-data',
'mage/utils/objects'
], function ($, address, customerData, mageUtils) {
'mage/utils/objects',
'underscore'
], function ($, address, customerData, mageUtils, _) {
'use strict';

var countryData = customerData.get('directory-data');
Expand Down Expand Up @@ -59,13 +60,15 @@ define([
delete addressData['region_id'];

if (addressData['custom_attributes']) {
addressData['custom_attributes'] = Object.entries(addressData['custom_attributes'])
.map(function (customAttribute) {
addressData['custom_attributes'] = _.map(
addressData['custom_attributes'],
function (value, key) {
return {
'attribute_code': customAttribute[0],
'value': customAttribute[1]
'attribute_code': key,
'value': value
};
});
}
);
}

return address(addressData);
Expand Down

0 comments on commit c15e194

Please sign in to comment.