{ this.maybeRenderAddContact() }
{
this.props.showHexData && (
)
}
)
}
maybeRenderAddContact () {
const { t } = this.context
const { to, addressBook = [], ownedAccounts = [], showAddToAddressBookModal } = this.props
const isOwnedAccount = !!ownedAccounts.find(({ address }) => address === to)
const contact = addressBook.find(({ address }) => address === to) || {}
if (isOwnedAccount || contact.name) {
return
}
return (