Skip to content

Commit

Permalink
fix: currencyPrecision=0 always falls to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeJP committed Mar 24, 2021
1 parent d881abe commit 38af845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/w2utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ w2utils.formatters = {

'money': function (value, params) {
if (value == null || value === '') return '';
var data = w2utils.formatNumber(Number(value), w2utils.settings.currencyPrecision || 2);
var data = w2utils.formatNumber(Number(value), w2utils.settings.currencyPrecision);
return (w2utils.settings.currencyPrefix || '') + data + (w2utils.settings.currencySuffix || '');
},

Expand Down

0 comments on commit 38af845

Please sign in to comment.