mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Merge pull request #2276 from MetaMask/revert-compute
Revert to normal balances.
This commit is contained in:
commit
a142f8913d
@ -46,7 +46,7 @@ AccountDetailScreen.prototype.render = function () {
|
||||
var selected = props.address || Object.keys(props.accounts)[0]
|
||||
var checksumAddress = selected && ethUtil.toChecksumAddress(selected)
|
||||
var identity = props.identities[selected]
|
||||
var account = props.computedBalances[selected]
|
||||
var account = props.accounts[selected]
|
||||
const { network, conversionRate, currentCurrency } = props
|
||||
|
||||
return (
|
||||
@ -181,7 +181,7 @@ AccountDetailScreen.prototype.render = function () {
|
||||
}, [
|
||||
|
||||
h(EthBalance, {
|
||||
value: account && account.ethBalance,
|
||||
value: account && account.balance,
|
||||
conversionRate,
|
||||
currentCurrency,
|
||||
style: {
|
||||
|
@ -33,7 +33,7 @@ function PendingTx () {
|
||||
|
||||
PendingTx.prototype.render = function () {
|
||||
const props = this.props
|
||||
const { currentCurrency, blockGasLimit, computedBalances } = props
|
||||
const { currentCurrency, blockGasLimit } = 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 = computedBalances[address]
|
||||
const balance = account ? account.ethBalance : '0x0'
|
||||
const account = props.accounts[address]
|
||||
const balance = account ? account.balance : '0x0'
|
||||
|
||||
// recipient check
|
||||
const isValidAddress = !txParams.to || util.isValidAddress(txParams.to)
|
||||
|
Loading…
Reference in New Issue
Block a user