From 62009f5769c83d6621ef442ee7df24f657c566cf Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 24 Jul 2020 21:41:50 -0500 Subject: [PATCH] Updated GroupsPage to not show tabs if no user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - GroupsPage to not show tabs if no user --- app/javascript/gabsocial/pages/groups_page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/gabsocial/pages/groups_page.js b/app/javascript/gabsocial/pages/groups_page.js index 8fd4d576..7e63b193 100644 --- a/app/javascript/gabsocial/pages/groups_page.js +++ b/app/javascript/gabsocial/pages/groups_page.js @@ -63,7 +63,7 @@ class GroupsPage extends PureComponent { onClick: this.handleOnOpenGroupCreateModal, }, ] - const tabs = [ + const tabs = !!me ? [ { title: intl.formatMessage(messages.featured), to: '/groups', @@ -76,7 +76,7 @@ class GroupsPage extends PureComponent { title: intl.formatMessage(messages.myGroups), to: '/groups/browse/member', }, - ] + ] : [] if (isPro) { tabs.push({