diff --git a/frontend/src/apps/Navigation/NavigationContainer.jsx b/frontend/src/apps/Navigation/NavigationContainer.jsx index d90e5b3c9..4c2307bc1 100644 --- a/frontend/src/apps/Navigation/NavigationContainer.jsx +++ b/frontend/src/apps/Navigation/NavigationContainer.jsx @@ -59,7 +59,6 @@ function Sidebar({ collapsible, isMobile = false }) { icon: , label: {translate('customers')}, }, - { key: 'invoice', icon: , @@ -103,7 +102,9 @@ function Sidebar({ collapsible, isMobile = false }) { if (currentPath !== location.pathname) { if (location.pathname === '/') { setCurrentPath('dashboard'); - } else setCurrentPath(location.pathname.slice(1)); + } else { + setCurrentPath(location.pathname.split('/')[1]); + } } }, [location, currentPath]);