aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/pending-tx-details.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-07-19 03:26:58 +0800
committerGitHub <noreply@github.com>2016-07-19 03:26:58 +0800
commit5b895c2a229555f127e1bd4b6f5c2973a37537cc (patch)
treef69762b76b110ad3af2ec86082073c828bf331f7 /ui/app/components/pending-tx-details.js
parent121874aeb651a294a68a506337553b9e9e7f7076 (diff)
parent1d8d8384c6fe7f29cb20864729c6431252ed4362 (diff)
downloadtangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.tar
tangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.tar.gz
tangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.tar.bz2
tangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.tar.lz
tangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.tar.xz
tangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.tar.zst
tangerine-wallet-browser-5b895c2a229555f127e1bd4b6f5c2973a37537cc.zip
Merge pull request #455 from MetaMask/FixReopeningBug
Fix reopening bug
Diffstat (limited to 'ui/app/components/pending-tx-details.js')
-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)