aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/eth-balance.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-12-24 09:22:46 +0800
committerDan Finlay <dan@danfinlay.com>2016-12-24 09:23:33 +0800
commitc05e04c611f44ff8bef2f1d617cb79d2a5157f2a (patch)
tree1d0b8ac362c8c88601417741c52127a4ac8b0066 /ui/app/components/eth-balance.js
parentf6748f043d6356258600dd57918c57b6c10378e1 (diff)
downloadtangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.tar
tangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.tar.gz
tangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.tar.bz2
tangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.tar.lz
tangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.tar.xz
tangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.tar.zst
tangerine-wallet-browser-c05e04c611f44ff8bef2f1d617cb79d2a5157f2a.zip
Fix rendering of loose accounts
Diffstat (limited to 'ui/app/components/eth-balance.js')
-rw-r--r--ui/app/components/eth-balance.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/app/components/eth-balance.js b/ui/app/components/eth-balance.js
index 46127bed5..57ca84564 100644
--- a/ui/app/components/eth-balance.js
+++ b/ui/app/components/eth-balance.js
@@ -15,9 +15,10 @@ function EthBalanceComponent () {
EthBalanceComponent.prototype.render = function () {
var props = this.props
+ let { value } = props
var style = props.style
var needsParse = this.props.needsParse !== undefined ? this.props.needsParse : true
- const value = formatBalance(props.value, 6, needsParse)
+ value = value ? formatBalance(value, 6, needsParse) : '...'
var width = props.width
return (
@@ -38,6 +39,7 @@ EthBalanceComponent.prototype.render = function () {
EthBalanceComponent.prototype.renderBalance = function (value) {
var props = this.props
if (value === 'None') return value
+ if (value === '...') return value
var balanceObj = generateBalanceObject(value, props.shorten ? 1 : 3)
var balance
var splitBalance = value.split(' ')