diff --git a/app/soapbox/components/sidebar-navigation.tsx b/app/soapbox/components/sidebar-navigation.tsx
index 3f33e6733..eede8c871 100644
--- a/app/soapbox/components/sidebar-navigation.tsx
+++ b/app/soapbox/components/sidebar-navigation.tsx
@@ -28,60 +28,62 @@ const SidebarNavigation = () => {
const makeMenu = (): Menu => {
const menu: Menu = [];
- if (account?.locked || followRequestsCount > 0) {
- menu.push({
- to: '/follow_requests',
- text: ,
- icon: require('@tabler/icons/icons/user-plus.svg'),
- // TODO: let menu items have a counter
- // count: followRequestsCount,
- });
- }
+ if (account) {
+ if (account.locked || followRequestsCount > 0) {
+ menu.push({
+ to: '/follow_requests',
+ text: ,
+ icon: require('@tabler/icons/icons/user-plus.svg'),
+ // TODO: let menu items have a counter
+ // count: followRequestsCount,
+ });
+ }
- if (features.bookmarks) {
- menu.push({
- to: '/bookmarks',
- text: ,
- icon: require('@tabler/icons/icons/bookmark.svg'),
- });
- }
+ if (features.bookmarks) {
+ menu.push({
+ to: '/bookmarks',
+ text: ,
+ icon: require('@tabler/icons/icons/bookmark.svg'),
+ });
+ }
- if (features.lists) {
- menu.push({
- to: '/lists',
- text: ,
- icon: require('@tabler/icons/icons/list.svg'),
- });
- }
+ if (features.lists) {
+ menu.push({
+ to: '/lists',
+ text: ,
+ icon: require('@tabler/icons/icons/list.svg'),
+ });
+ }
- if (account && instance.invites_enabled) {
- menu.push({
- to: `${baseURL}/invites`,
- icon: require('@tabler/icons/icons/mailbox.svg'),
- text: ,
- });
- }
+ if (instance.invites_enabled) {
+ menu.push({
+ to: `${baseURL}/invites`,
+ icon: require('@tabler/icons/icons/mailbox.svg'),
+ text: ,
+ });
+ }
- if (settings.get('isDeveloper')) {
- menu.push({
- to: '/developers',
- icon: require('@tabler/icons/icons/code.svg'),
- text: ,
- });
- }
+ if (settings.get('isDeveloper')) {
+ menu.push({
+ to: '/developers',
+ icon: require('@tabler/icons/icons/code.svg'),
+ text: ,
+ });
+ }
- if (account && account.staff) {
- menu.push({
- to: '/admin',
- icon: require('@tabler/icons/icons/dashboard.svg'),
- text: ,
- // TODO: let menu items have a counter
- // count: dashboardCount,
- });
- }
+ if (account.staff) {
+ menu.push({
+ to: '/admin',
+ icon: require('@tabler/icons/icons/dashboard.svg'),
+ text: ,
+ // TODO: let menu items have a counter
+ // count: dashboardCount,
+ });
+ }
- if (features.localTimeline || features.publicTimeline) {
- menu.push(null);
+ if (features.localTimeline || features.publicTimeline) {
+ menu.push(null);
+ }
}
if (features.localTimeline) {