aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEsteban MIno <efmino@uc.cl>2018-08-22 23:06:11 +0800
committerEsteban MIno <efmino@uc.cl>2018-08-22 23:06:11 +0800
commit153731e46285563f834cf29d154efec2cf9077e5 (patch)
tree24eea8c2ce2c3c42554338ac6648fe91f1d67334
parent4e6c71e969d9d681eb50d87502d765aa28959339 (diff)
downloadtangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.tar
tangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.tar.gz
tangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.tar.bz2
tangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.tar.lz
tangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.tar.xz
tangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.tar.zst
tangerine-wallet-browser-153731e46285563f834cf29d154efec2cf9077e5.zip
fix integration tests on balance component with new watchAsset
-rw-r--r--ui/app/components/balance-component.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/balance-component.js b/ui/app/components/balance-component.js
index 9af27f4ec..f85d1cdcd 100644
--- a/ui/app/components/balance-component.js
+++ b/ui/app/components/balance-component.js
@@ -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,
}),