aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-04-05 04:56:39 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-04-05 04:56:39 +0800
commit3de1873126fa4241b2b149ac35ce7eb4da506ee2 (patch)
treefbaff154a482e56944e808822b6346b95f9eefa2 /ui
parent2e70610423000abf74e95c36342f1eec74bc606f (diff)
downloadtangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.tar
tangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.tar.gz
tangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.tar.bz2
tangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.tar.lz
tangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.tar.xz
tangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.tar.zst
tangerine-wallet-browser-3de1873126fa4241b2b149ac35ce7eb4da506ee2.zip
hot-fix new-ui - default to an object if identities is undefined
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx/confirm-send-ether.js b/ui/app/components/pending-tx/confirm-send-ether.js
index d007e6661..7bf20bced 100644
--- a/ui/app/components/pending-tx/confirm-send-ether.js
+++ b/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,