Identicon in send token show who you are sending to, not the token's identicon.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent 89af385a35
commit 7362fb8dfc
  1. 6
      ui/app/components/pending-tx/confirm-send-token.js

@ -145,14 +145,14 @@ ConfirmSendToken.prototype.getData = function () {
const { value } = params[0] || {} const { value } = params[0] || {}
const txMeta = this.gatherTxMeta() const txMeta = this.gatherTxMeta()
const txParams = txMeta.txParams || {} const txParams = txMeta.txParams || {}
return { return {
from: { from: {
address: txParams.from, address: txParams.from,
name: identities[txParams.from].name, name: identities[txParams.from].name,
}, },
to: { to: {
address: txParams.to, address: value,
name: identities[value] ? identities[value].name : 'New Recipient', name: identities[value] ? identities[value].name : 'New Recipient',
}, },
memo: txParams.memo || '', memo: txParams.memo || '',
@ -290,7 +290,7 @@ ConfirmSendToken.prototype.render = function () {
h( h(
Identicon, Identicon,
{ {
address: txParams.to, address: toAddress,
diameter: 60, diameter: 60,
}, },
), ),

Loading…
Cancel
Save