Skip to content

Commit f6ca94c

Browse files
committed
MAGETWO-69533:[BUGFIX][6244] Fix Issue with code label display in cart checkout. #9721
- Code style fixed
1 parent c47fe87 commit f6ca94c

File tree

1 file changed

+13
-9
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/model

1 file changed

+13
-9
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/quote.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ define([
1111
], function (ko, _) {
1212
'use strict';
1313

14+
/**
15+
* Get totals data from the extension attributes.
16+
* @param {*} data
17+
* @returns {*}
18+
*/
1419
var proceedTotalsData = function (data) {
15-
if (_.isObject(data) && _.isObject(data['extension_attributes'])) {
16-
_.each(data['extension_attributes'], function (element, index) {
17-
data[index] = element;
18-
});
19-
}
20+
if (_.isObject(data) && _.isObject(data['extension_attributes'])) {
21+
_.each(data['extension_attributes'], function (element, index) {
22+
data[index] = element;
23+
});
24+
}
2025

21-
return data;
22-
};
23-
24-
var billingAddress = ko.observable(null),
26+
return data;
27+
},
28+
billingAddress = ko.observable(null),
2529
shippingAddress = ko.observable(null),
2630
shippingMethod = ko.observable(null),
2731
paymentMethod = ko.observable(null),

0 commit comments

Comments
 (0)