aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-09-14 05:31:48 +0800
committerDan Finlay <dan@danfinlay.com>2017-09-14 05:31:48 +0800
commit0ba649317592efced339980a729213876bc25a81 (patch)
tree8cfa7268b67b17196ebadaa55ed686cd91360780 /ui/app/components
parent86cd4e4fedbea9639de33827733b4b85ef988bee (diff)
downloadtangerine-wallet-browser-0ba649317592efced339980a729213876bc25a81.tar.gz
tangerine-wallet-browser-0ba649317592efced339980a729213876bc25a81.tar.zst
tangerine-wallet-browser-0ba649317592efced339980a729213876bc25a81.zip
Use computed balance for tx confirmation
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pending-tx.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js
index 3e53d47f9..1cc8daebe 100644
--- a/ui/app/components/pending-tx.js
+++ b/ui/app/components/pending-tx.js
@@ -33,7 +33,7 @@ function PendingTx () {
PendingTx.prototype.render = function () {
const props = this.props
- const { currentCurrency, blockGasLimit } = props
+ const { currentCurrency, blockGasLimit, computedBalances } = props
const conversionRate = props.conversionRate
const txMeta = this.gatherTxMeta()
@@ -42,8 +42,8 @@ PendingTx.prototype.render = function () {
// Account Details
const address = txParams.from || props.selectedAddress
const identity = props.identities[address] || { address: address }
- const account = props.accounts[address]
- const balance = account ? account.balance : '0x0'
+ const account = computedBalances[address]
+ const balance = account ? account.ethBalance : '0x0'
// recipient check
const isValidAddress = !txParams.to || util.isValidAddress(txParams.to)