Display prices rounded to whole numbers with no ".0"
Looks cleaner, plus no issue of "1.0 credits" vs "1.0 credit"
This commit is contained in:
parent
5d05e10f18
commit
de1596c0ba
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ lbry.reportBug = function(message, callback) {
|
|||
//utilities
|
||||
lbry.formatCredits = function(amount, precision)
|
||||
{
|
||||
return amount.toFixed(precision || 1);
|
||||
return amount.toFixed(precision || 1).replace(/\.?0+$/, '');
|
||||
}
|
||||
|
||||
lbry.loadJs = function(src, type, onload)
|
||||
|
|
Loading…
Add table
Reference in a new issue