Skip to content

Commit cdad976

Browse files
MC-34264: Shipping Method Estimator not working with custom address attributes
1 parent 5b44987 commit cdad976

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,15 @@ define([
101101
output.street = streetObject;
102102
}
103103

104+
//jscs:disable requireCamelCaseOrUpperCaseIdentifiers
104105
if ($.isArray(addrs.customAttributes)) {
105106
customAttributesObject = {};
106-
addrs.customAttributes.forEach(function (value, index) {
107+
addrs.customAttributes.forEach(function (value) {
107108
customAttributesObject[value.attribute_code] = value.value;
108109
});
109110
output.custom_attributes = customAttributesObject;
110111
}
112+
//jscs:enable requireCamelCaseOrUpperCaseIdentifiers
111113

112114
return output;
113115
},

0 commit comments

Comments
 (0)