|
|
@ -3,7 +3,7 @@ import PropTypes from 'prop-types'; |
|
|
|
import classnames from 'classnames'; |
|
|
|
import classnames from 'classnames'; |
|
|
|
import contractMap from '@metamask/contract-metadata'; |
|
|
|
import contractMap from '@metamask/contract-metadata'; |
|
|
|
|
|
|
|
|
|
|
|
import { checksumAddress } from '../../../helpers/utils/util'; |
|
|
|
import { checksumAddress, isHex } from '../../../helpers/utils/util'; |
|
|
|
import Jazzicon from '../jazzicon'; |
|
|
|
import Jazzicon from '../jazzicon'; |
|
|
|
import BlockieIdenticon from './blockieIdenticon'; |
|
|
|
import BlockieIdenticon from './blockieIdenticon'; |
|
|
|
|
|
|
|
|
|
|
@ -85,11 +85,13 @@ export default class Identicon extends PureComponent { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (address) { |
|
|
|
if (address) { |
|
|
|
|
|
|
|
if (isHex(address)) { |
|
|
|
const checksummedAddress = checksumAddress(address); |
|
|
|
const checksummedAddress = checksumAddress(address); |
|
|
|
|
|
|
|
|
|
|
|
if (contractMap[checksummedAddress]?.logo) { |
|
|
|
if (contractMap[checksummedAddress]?.logo) { |
|
|
|
return this.renderJazzicon(); |
|
|
|
return this.renderJazzicon(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div |
|
|
|
<div |
|
|
|