Skip to content

Commit cc7c6f8

Browse files
authored
Merge pull request #766 from dabura667/fix-BTC-places
Fix Fee Rate to 8 decimal places
2 parents 795b518 + d0a8b12 commit cc7c6f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/src/js/controllers/currency.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ angular.module('insight.currency').controller('CurrencyController',
2626
} else if (this.symbol === 'bits') {
2727
this.factor = 1000000;
2828
response = _roundFloat((value * this.factor), 2);
29-
} else {
29+
} else { // assumes symbol is BTC
3030
this.factor = 1;
31-
response = value;
31+
response = _roundFloat((value * this.factor), 8);
3232
}
3333
// prevent sci notation
3434
if (response < 1e-7) response=response.toFixed(8);

0 commit comments

Comments
 (0)