aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-16 08:47:58 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-16 08:47:58 +0800
commitc4812b3452da96c0196da4ea39ac3080b59078cb (patch)
tree098b75bf54d3de8791dcfe9bc20901e1879cf3b2 /ui/app/components
parent750a3d8fe71c888bb3b596203534d8571a3617cf (diff)
downloadtangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.tar
tangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.tar.gz
tangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.tar.bz2
tangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.tar.lz
tangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.tar.xz
tangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.tar.zst
tangerine-wallet-browser-c4812b3452da96c0196da4ea39ac3080b59078cb.zip
Triage a strange undefined balance error
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx-details.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js
index a6f72a89b..2fb0eae3f 100644
--- a/ui/app/components/pending-tx-details.js
+++ b/ui/app/components/pending-tx-details.js
@@ -28,7 +28,8 @@ PTXP.render = function () {
var txParams = txData.txParams || {}
var address = txParams.from || props.selectedAddress
var identity = props.identities[address] || { address: address }
- var balance = props.accounts[address].balance
+ var account = props.accounts[address]
+ var balance = account ? account.balance : '0x0'
var gasCost = new BN(ethUtil.stripHexPrefix(txParams.gas || txData.estimatedGas), 16)
var gasPrice = new BN(ethUtil.stripHexPrefix(txParams.gasPrice || '0x4a817c800'), 16)