Updated GroupsPage to not show tabs if no user

• Updated:
- GroupsPage to not show tabs if no user
This commit is contained in:
mgabdev 2020-07-24 21:41:50 -05:00
parent 88d3b328f6
commit 62009f5769
1 changed files with 2 additions and 2 deletions

View File

@ -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({