Browse Source

fix: show channel filter with empty active filter

Ensure that the channel filter shows instead of the suggested nodes list
when an empty channel filter is selected.

Fix #507
renovate/lint-staged-8.x
Tom Kirkpatrick 7 years ago
parent
commit
8e195c48ea
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 9
      app/components/Contacts/Network.js

9
app/components/Contacts/Network.js

@ -31,7 +31,8 @@ class Network extends Component {
filter,
selectedChannel,
loadingChannelPubkeys,
closingChannelIds
closingChannelIds,
channels
},
currentChannels,
balance,
@ -175,9 +176,13 @@ class Network extends Component {
<div className={styles.channels}>
{!loadingChannelPubkeys.length &&
!currentChannels.length &&
!channels.length &&
!searchQuery.length && <SuggestedNodes {...suggestedNodesProps} />}
{(loadingChannelPubkeys.length || currentChannels.length) && (
{(loadingChannelPubkeys.length ||
currentChannels.length ||
channels.length ||
searchQuery.length) && (
<header className={styles.listHeader}>
<section>
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}>

Loading…
Cancel
Save