From c499a8dbad091e23986506ee24fe8ca4605e25e6 Mon Sep 17 00:00:00 2001 From: dsmith111 Date: Tue, 22 Dec 2020 17:13:47 -0500 Subject: [PATCH] Modified to adhere to no-continue ESLint --- src/pages/home/sidebar/ChatSwitcherView.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/home/sidebar/ChatSwitcherView.js b/src/pages/home/sidebar/ChatSwitcherView.js index 1c0933cb7659..89d38f957a9d 100644 --- a/src/pages/home/sidebar/ChatSwitcherView.js +++ b/src/pages/home/sidebar/ChatSwitcherView.js @@ -445,13 +445,9 @@ class ChatSwitcherView extends React.Component { groupOption.login === option.login )); - // We must ignore the user if it matches the currently logged in user. - if (this.props.session.email === option.login) { - continue; - } - // Make sure we don't include the same option twice (automatically handled by using a `Set`) - if (isMatch && !isInGroupUsers) { + // We must also ignore the user if it matches the currently logged in user. + if (isMatch && !isInGroupUsers && this.props.session.email !== option.login) { matches.add(option); }