mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Ensure correct address used when rendering transfer transactions.
This commit is contained in:
parent
21b6a3442d
commit
01e3293b65
@ -71,7 +71,8 @@ TxListItem.prototype.getAddressText = function () {
|
||||
|
||||
let addressText
|
||||
if (txDataName === 'transfer' || address) {
|
||||
addressText = `${value.slice(0, 10)}...${value.slice(-4)}`
|
||||
const addressToRender = txDataName === 'transfer' ? value : address
|
||||
addressText = `${addressToRender.slice(0, 10)}...${addressToRender.slice(-4)}`
|
||||
} else if (isMsg) {
|
||||
addressText = this.props.t('sigRequest')
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user