aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/eth-balance.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-01-04 01:28:53 +0800
committerGitHub <noreply@github.com>2017-01-04 01:28:53 +0800
commitb13c54682b75aaceba1ef37a4d97669f57e448a9 (patch)
treee81657c2671e25fbbba9e9bc3a62828269c38da5 /ui/app/components/eth-balance.js
parentfa3e708f34fce523601c39b3131bdbe858d2f85f (diff)
parentfe61fcb0fcbee05724b77f9729660c9f692a0cb1 (diff)
downloadtangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar
tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.gz
tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.bz2
tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.lz
tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.xz
tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.tar.zst
tangerine-wallet-browser-b13c54682b75aaceba1ef37a4d97669f57e448a9.zip
Merge pull request #958 from MetaMask/i897-ReplayProtection
Add replay protection
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(' ')