From b15d68de18528126a0a3d4805657613be181f247 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Thu, 19 Jul 2018 15:33:51 -0400 Subject: [PATCH] refactor: avoid repeating a conditional in Network --- app/components/Contacts/Network.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/app/components/Contacts/Network.js b/app/components/Contacts/Network.js index 48019cae..18128ed0 100644 --- a/app/components/Contacts/Network.js +++ b/app/components/Contacts/Network.js @@ -174,15 +174,10 @@ class Network extends Component {
- {!loadingChannelPubkeys.length && - !currentChannels.length && - !channels.length && - !searchQuery.length && } - - {(loadingChannelPubkeys.length || - currentChannels.length || - channels.length || - searchQuery.length) && ( + {loadingChannelPubkeys.length || + currentChannels.length || + channels.length || + searchQuery.length ? (

@@ -211,6 +206,8 @@ class Network extends Component {

+ ) : ( + )}