diff --git a/src/app/components/NavBar/navDef.ts b/src/app/components/NavBar/navDef.ts
index 221aec634..2565e5cb9 100644
--- a/src/app/components/NavBar/navDef.ts
+++ b/src/app/components/NavBar/navDef.ts
@@ -1,5 +1,6 @@
//This file defines all the routes for the navbar and menu
//Higher placment in array gives hight priority on where it is placed (ie menu vs. navbar)
+//does not include / or /login (or profile route) as they are always shown and ar special
import {
faGamepad,
faBook,
From c4476a1fa38eb1601d264018386dcd9e690a6f7d Mon Sep 17 00:00:00 2001
From: JohanHjelsethStorstad
<82723971+JohanHjelsethStorstad@users.noreply.github.com>
Date: Sun, 7 Jan 2024 19:42:56 +0100
Subject: [PATCH 17/28] last index + 1 shoud be included in an array slice
---
src/app/components/NavBar/MobileNavBar.tsx | 2 +-
src/app/components/NavBar/NavBar.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/components/NavBar/MobileNavBar.tsx b/src/app/components/NavBar/MobileNavBar.tsx
index 053a9e2e4..c41df6a19 100644
--- a/src/app/components/NavBar/MobileNavBar.tsx
+++ b/src/app/components/NavBar/MobileNavBar.tsx
@@ -19,7 +19,7 @@ function MobileNavBar({ session } : PropTypes) {
const navItems = getNavItems(isLoggedIn, isAdmin, applicationPeriod)
const itemsForNav = navItems.slice(0, 1)
- const itemsForMenu = navItems.slice(2, navItems.length - 1)
+ const itemsForMenu = navItems.slice(2, navItems.length)
return (