Browse Source
Merge pull request #482 from LN-Zap/fix/channel-list
fix(channel-list): change the logic to look at the currentChannels
renovate/lint-staged-8.x
Ben Woosley
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
5 deletions
-
app/components/Contacts/Network.js
|
|
@ -32,8 +32,7 @@ class Network extends Component { |
|
|
|
filter, |
|
|
|
selectedChannel, |
|
|
|
loadingChannelPubkeys, |
|
|
|
closingChannelIds, |
|
|
|
channels |
|
|
|
closingChannelIds |
|
|
|
}, |
|
|
|
currentChannels, |
|
|
|
balance, |
|
|
@ -171,9 +170,10 @@ class Network extends Component { |
|
|
|
|
|
|
|
<div className={styles.channels}> |
|
|
|
{!loadingChannelPubkeys.length && |
|
|
|
!channels.length && <SuggestedNodes {...suggestedNodesProps} />} |
|
|
|
!currentChannels.length && |
|
|
|
!searchQuery.length && <SuggestedNodes {...suggestedNodesProps} />} |
|
|
|
|
|
|
|
{(loadingChannelPubkeys.length || channels.length) && ( |
|
|
|
{(loadingChannelPubkeys.length || currentChannels.length) && ( |
|
|
|
<header className={styles.listHeader}> |
|
|
|
<section> |
|
|
|
<h2 onClick={toggleFilterPulldown} className={styles.filterTitle}> |
|
|
@ -320,7 +320,7 @@ class Network extends Component { |
|
|
|
})} |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
{(loadingChannelPubkeys.length || channels.length) && ( |
|
|
|
{(loadingChannelPubkeys.length || currentChannels.length || searchQuery.length) && ( |
|
|
|
<footer className={styles.search}> |
|
|
|
<label htmlFor="search" className={`${styles.label} ${styles.input}`}> |
|
|
|
<Isvg src={search} /> |
|
|
|