Skip to content

Commit 84e6dab

Browse files
committed
only 2 decimals for price in usd
1 parent 521bcee commit 84e6dab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/ethplorer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,13 +1819,13 @@ Ethplorer = {
18191819
}else{
18201820
var res = Ethplorer.Utils.formatNum(value, true, 18, true) + '&nbsp;<i class="fab fa-ethereum"></i>&nbsp;ETH';
18211821
if(value){
1822-
var price = Ethplorer.Utils.formatNum(Ethplorer.ethPrice.rate * value, true, 4, true);
1822+
var price = Ethplorer.Utils.formatNum(Ethplorer.ethPrice.rate * value, true, 2, true);
18231823
if(true || ('0.00' != price)){
18241824
var change = Ethplorer.ethPrice.diff;
18251825
var cls = change > 0 ? 'diff-up' : 'diff-down';
18261826
var diff = "";
18271827
// var diff = change ? (' <span class="' + cls + '">(' + Ethplorer.Utils.round(change, 2) + '%)</span>') : '';
1828-
res = res + '<br /><span class="transfer-usd">$&nbsp;' + price + diff + '</span>';
1828+
res = res + '<br /><b class="transfer-usd">$ ' + price + diff + '</b>';
18291829
}
18301830
}
18311831
value = res;

0 commit comments

Comments
 (0)