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

fix integration tests on balance component with new watchAsset

This commit is contained in:
Esteban MIno 2018-08-22 12:06:11 -03:00
parent 4e6c71e969
commit 153731e462

View File

@ -34,8 +34,8 @@ function BalanceComponent () {
BalanceComponent.prototype.render = function () {
const props = this.props
const { token, network, assetImages } = props
let imageUrl
if (token) imageUrl = assetImages[token.address]
const address = token && token.address
const imageUrl = assetImages && address ? assetImages[token.address] : undefined
return h('div.balance-container', {}, [
@ -46,7 +46,7 @@ BalanceComponent.prototype.render = function () {
// }),
h(Identicon, {
diameter: 50,
address: token && token.address,
address,
network,
imageUrl,
}),