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:
parent
c221f5ce79
commit
d4343fe7e5
@ -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 || '',
|
||||
}
|
||||
|
@ -107,6 +107,7 @@
|
||||
.confirm-screen-account-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.confirm-screen-account-name {
|
||||
|
Loading…
Reference in New Issue
Block a user