diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-07 14:11:47 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-07 14:11:47 +0800 |
commit | 3bcf44509ee7377ff108ebde19d9125c77527e79 (patch) | |
tree | b7c6531e5714a76a88f39ce36e9cc19ac3a66a9d /ui/app | |
parent | edf681a1e8a04311e40757c7548d757211498fde (diff) | |
download | tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.tar tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.tar.gz tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.tar.bz2 tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.tar.lz tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.tar.xz tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.tar.zst tangerine-wallet-browser-3bcf44509ee7377ff108ebde19d9125c77527e79.zip |
Fix sender balance rendering in pending tx details
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/pending-tx-details.js | 5 |
1 files changed, 4 insertions, 1 deletions
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, |