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.
1 parent c07e5bb commit 6257807Copy full SHA for 6257807
app/code/Magento/Catalog/view/base/web/js/price-utils.js
@@ -70,7 +70,7 @@ define([
70
am = Number(Math.round(Math.abs(amount - i) + 'e+' + precision) + ('e-' + precision));
71
r = (j ? i.substr(0, j) + groupSymbol : '') +
72
i.substr(j).replace(re, '$1' + groupSymbol) +
73
- (precision ? decimalSymbol + am.toFixed(2).replace(/-/, 0).slice(2) : '');
+ (precision ? decimalSymbol + am.toFixed(precision).replace(/-/, 0).slice(2) : '');
74
75
return pattern.replace('%s', r).replace(/^\s\s*/, '').replace(/\s\s*$/, '');
76
}
0 commit comments