From 3bcf44509ee7377ff108ebde19d9125c77527e79 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Wed, 6 Jul 2016 23:11:47 -0700 Subject: Fix sender balance rendering in pending tx details --- ui/app/components/pending-tx-details.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ui/app') diff --git a/ui/app/components/pending-tx-details.js b/ui/app/components/pending-tx-details.js index 369104089..24ab58343 100644 --- a/ui/app/components/pending-tx-details.js +++ b/ui/app/components/pending-tx-details.js @@ -29,12 +29,15 @@ 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 gasCost = ethUtil.stripHexPrefix(txParams.gas || baseFeeHex) var txValue = ethUtil.stripHexPrefix(txParams.value || '0x0') var maxCost = ((new BN(txValue, 16)).add(new BN(gasCost, 16))).toString(16) var dataLength = txParams.data ? txParams.data.length - 2 : 0 + console.dir(identity) + console.dir({props}) return ( h('div', [ @@ -48,7 +51,7 @@ PTXP.render = function () { attrs: [ identity.name, addressSummary(address, 6, 4, false), - formatBalance(identity.balance).formatted, + formatBalance(balance).formatted, ], imageSeed: address, imageifyIdenticons: props.imageifyIdenticons, -- cgit v1.2.3