1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-30 04:08:28 +00:00

fix empty case

This commit is contained in:
Vladimir Volek 2019-04-23 13:46:03 +02:00
parent 7abc4a61fe
commit 97f372fe01

View File

@ -96,7 +96,7 @@ class CoinMenu extends PureComponent<Props> {
isTopMenuEmpty() {
const numberOfVisibleNetworks = this.props.localStorage.config.networks
.filter(item => !item.isHidden) // hide coins globally in config
.filter(item => this.props.wallet.hiddenCoins.includes(item.shortcut));
.filter(item => !this.props.wallet.hiddenCoins.includes(item.shortcut));
return numberOfVisibleNetworks.length <= 0;
}