aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/eth-balance.js
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2016-07-14 06:46:36 +0800
committerDan Finlay <somniac@me.com>2016-07-14 06:46:36 +0800
commitdbc9008295f96b8917c5b66d8df2c2e2360c2814 (patch)
treee3d5ef6010156bbee1e9d93ce1fe8206e527916f /ui/app/components/eth-balance.js
parent7b9b22e8a082bf78061030d176327914a4ad54de (diff)
downloadtangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.tar
tangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.tar.gz
tangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.tar.bz2
tangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.tar.lz
tangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.tar.xz
tangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.tar.zst
tangerine-wallet-browser-dbc9008295f96b8917c5b66d8df2c2e2360c2814.zip
Fix eth balance tooltip to show 6 decimals (#440)
* Fix tooltip to show to the 6 decimal place on balances ovr 0... * Change font size for balance component in tx-list so it fits the notation * Add to change log * Linting * change log
Diffstat (limited to 'ui/app/components/eth-balance.js')
-rw-r--r--ui/app/components/eth-balance.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js
index 5f99a3e48..612ef7779 100644
--- a/ui/app/components/eth-balance.js
+++ b/ui/app/components/eth-balance.js
@@ -15,7 +15,7 @@ EthBalanceComponent.prototype.render = function () {
var state = this.props
var style = state.style
- const value = formatBalance(state.value)
+ const value = formatBalance(state.value, 6)
var width = state.width
return (
@@ -35,7 +35,7 @@ EthBalanceComponent.prototype.render = function () {
}
EthBalanceComponent.prototype.renderBalance = function (value, state) {
if (value === 'None') return value
- var balanceObj = generateBalanceObject(value, 1)
+ var balanceObj = generateBalanceObject(value, state.shorten ? 1 : 3)
var balance
if (state.shorten) {