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

Ensure correct address used when rendering transfer transactions.

This commit is contained in:
Dan 2018-03-29 10:32:30 -02:30
parent 21b6a3442d
commit 01e3293b65

View File

@ -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 {