From 004ae186e2ff3a3a6518353ac28dff37dd2f4fee Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Mon, 22 Jul 2024 22:33:03 +0200 Subject: [PATCH] Fix bug in Header.jsx --- dashboard/src/states/Dashboard/components/Header/Header.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/states/Dashboard/components/Header/Header.jsx b/dashboard/src/states/Dashboard/components/Header/Header.jsx index 8c403af..761161b 100644 --- a/dashboard/src/states/Dashboard/components/Header/Header.jsx +++ b/dashboard/src/states/Dashboard/components/Header/Header.jsx @@ -25,7 +25,7 @@ export const Header = ({toggleOpen}) => { const route = [...sidebar, ...projectSidebar].find((route) => location.pathname .replace(currentProject?.id, ":projectId").startsWith(route.path) && route.path !== "/"); if (route) return route.name; - return "Start"; + return "Home"; } const switchProject = (project) => { @@ -51,10 +51,10 @@ export const Header = ({toggleOpen}) => { - switchProject(projects.find((project) => project.id === e.target.value))}> {projects.map((project) => {project.name})} - + } setMenuOpen(true)} id="menu"