Skip to content
This repository has been archived by the owner on Aug 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request bitpay#766 from dabura667/fix-BTC-places
Browse files Browse the repository at this point in the history
Fix Fee Rate to 8 decimal places
  • Loading branch information
matiu committed Apr 10, 2017
2 parents 795b518 + d0a8b12 commit cc7c6f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/src/js/controllers/currency.js
Expand Up @@ -26,9 +26,9 @@ angular.module('insight.currency').controller('CurrencyController',
} else if (this.symbol === 'bits') {
this.factor = 1000000;
response = _roundFloat((value * this.factor), 2);
} else {
} else { // assumes symbol is BTC
this.factor = 1;
response = value;
response = _roundFloat((value * this.factor), 8);
}
// prevent sci notation
if (response < 1e-7) response=response.toFixed(8);
Expand Down

0 comments on commit cc7c6f8

Please sign in to comment.