Skip to content

Commit

Permalink
In balance table show prices < 1 to 6 dp
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvana-tikku committed Dec 24, 2017
1 parent 5673c21 commit 9370acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enhancer.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ Enhancer.enhanceBalanceTable = function balanceTable(table){
const estUsdPrice = estBtcPrice * Enhancer.prices.btcUsd;
let tkn = columns[1].innerText.replace(/\s+/g, '').toLowerCase();
if(tkn !== 'bitcoin'){
updateColumn(CONSTANTS.classes.estUsdPrice, row, 3, 'fiat', '$' + estUsdPrice.format(2));
updateColumn(CONSTANTS.classes.estUsdPrice, row, 3, 'fiat', '$' + estUsdPrice.format(estUsdPrice < 1 ? 6 : 2));
updateColumn(CONSTANTS.classes.estBtcPrice, row, 4, 'btc', 'Ƀ' + estBtcPrice.format(8));
} else {
updateColumn(CONSTANTS.classes.estUsdPrice, row, 3, 'fiat', "-");
Expand Down

0 comments on commit 9370acb

Please sign in to comment.