hot-fix new-ui - default to an object if identities is undefined

feature/default_network_editable
frankiebee 7 years ago
parent 2e70610423
commit 3de1873126
  1. 3
      ui/app/components/pending-tx/confirm-send-ether.js

@ -237,6 +237,7 @@ ConfirmSendEther.prototype.getData = function () {
const { identities } = this.props
const txMeta = this.gatherTxMeta()
const txParams = txMeta.txParams || {}
const account = identities ? identities[txParams.from] || {} : {}
const { FIAT: gasFeeInFIAT, ETH: gasFeeInETH, gasFeeInHex } = this.getGasFee()
const { FIAT: amountInFIAT, ETH: amountInETH } = this.getAmount()
@ -252,7 +253,7 @@ ConfirmSendEther.prototype.getData = function () {
return {
from: {
address: txParams.from,
name: identities[txParams.from].name,
name: account.name,
},
to: {
address: txParams.to,

Loading…
Cancel
Save