1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix recipient on send token

This commit is contained in:
Chi Kei Chan 2017-10-10 14:36:13 -07:00
parent c221f5ce79
commit d4343fe7e5
2 changed files with 5 additions and 2 deletions

View File

@ -125,7 +125,9 @@ ConfirmSendToken.prototype.getGasFee = function () {
}
ConfirmSendToken.prototype.getData = function () {
const { identities } = this.props
const { identities, tokenData } = this.props
const { params = [] } = tokenData
const { value } = params[0] || {}
const txMeta = this.gatherTxMeta()
const txParams = txMeta.txParams || {}
@ -136,7 +138,7 @@ ConfirmSendToken.prototype.getData = function () {
},
to: {
address: txParams.to,
name: identities[txParams.to] ? identities[txParams.to].name : 'New Recipient',
name: identities[value] ? identities[value].name : 'New Recipient',
},
memo: txParams.memo || '',
}

View File

@ -107,6 +107,7 @@
.confirm-screen-account-wrapper {
display: flex;
flex-direction: column;
align-items: center;
}
.confirm-screen-account-name {