We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4a083d1 + 24d8da3 commit 709a452Copy full SHA for 709a452
app/code/Magento/Checkout/view/frontend/web/js/model/address-converter.js
@@ -72,20 +72,20 @@ define([
72
output = {},
73
streetObject;
74
75
+ $.each(addrs, function (key) {
76
+ if (addrs.hasOwnProperty(key) && !$.isFunction(addrs[key])) {
77
+ output[self.toUnderscore(key)] = addrs[key];
78
+ }
79
+ });
80
+
81
if ($.isArray(addrs.street)) {
82
streetObject = {};
83
addrs.street.forEach(function (value, index) {
84
streetObject[index] = value;
85
});
- addrs.street = streetObject;
86
+ output.street = streetObject;
87
}
88
- $.each(addrs, function (key) {
- if (addrs.hasOwnProperty(key) && !$.isFunction(addrs[key])) {
- output[self.toUnderscore(key)] = addrs[key];
- }
- });
-
89
return output;
90
},
91
0 commit comments