Skip to content

Commit 75a3b1a

Browse files
author
Valeriy Nayda
committed
Merge remote-tracking branch 'origin/MAGETWO-40135' into MAGETWO-35251
2 parents 23cfe6d + 714707e commit 75a3b1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Catalog/view/base/web/js/price-box.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ define([
9797
'amount': 0,
9898
'adjustments': {}
9999
};
100-
additionalPrice[priceCode].amount = parseInt(additionalPrice[priceCode].amount || 0, 10)
100+
additionalPrice[priceCode].amount = 0 + (additionalPrice[priceCode].amount || 0)
101101
+ priceValue.amount;
102102
_.each(priceValue.adjustments, function (adValue, adCode) {
103-
additionalPrice[priceCode].adjustments[adCode] =
104-
parseInt(additionalPrice[priceCode].adjustments[adCode] || 0, 10) + adValue;
103+
additionalPrice[priceCode].adjustments[adCode] = 0
104+
+ (additionalPrice[priceCode].adjustments[adCode] || 0) + adValue;
105105
});
106106
});
107107
});
@@ -117,9 +117,9 @@ define([
117117
origin.adjustments = origin.adjustments || {};
118118
final.adjustments = final.adjustments || {};
119119

120-
final.amount = parseInt(origin.amount, 10) + option.amount;
120+
final.amount = 0 + origin.amount + option.amount;
121121
_.each(option.adjustments, function (pa, paCode) {
122-
final.adjustments[paCode] = parseInt(origin.adjustments[paCode] || 0, 10) + pa;
122+
final.adjustments[paCode] = 0 + (origin.adjustments[paCode] || 0) + pa;
123123
});
124124
}, this);
125125
}

0 commit comments

Comments
 (0)