aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2018-04-05 15:45:17 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2018-04-05 15:45:17 +0800
commit29bad56410d433ec81203fcf2d7b5b1d7a76a04b (patch)
treef49ed1a5082cd8faa16b2be9a9d7d28cebb49e92 /ui
parent02fa5c9c32bc1aac8b6d6b1e8f5945a9b3be144a (diff)
parent1153120fe84e9d4cde47a7e416028be0fec3c61c (diff)
downloadtangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.tar
tangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.tar.gz
tangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.tar.bz2
tangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.tar.lz
tangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.tar.xz
tangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.tar.zst
tangerine-wallet-browser-29bad56410d433ec81203fcf2d7b5b1d7a76a04b.zip
Merge branch 'master' of github.com:MetaMask/metamask-extension into openlinkinnewwindow
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/ens-input.js4
-rw-r--r--ui/app/components/pending-tx/confirm-send-ether.js3
2 files changed, 4 insertions, 3 deletions
diff --git a/ui/app/components/ens-input.js b/ui/app/components/ens-input.js
index 1f3946817..feb0a7037 100644
--- a/ui/app/components/ens-input.js
+++ b/ui/app/components/ens-input.js
@@ -32,10 +32,10 @@ EnsInput.prototype.render = function () {
const network = this.props.network
const networkHasEnsSupport = getNetworkEnsSupport(network)
- if (!networkHasEnsSupport) return
-
props.onChange(recipient)
+ if (!networkHasEnsSupport) return
+
if (recipient.match(ensRE) === null) {
return this.setState({
loadingEns: false,
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,