diff --git a/apps/client-ts/src/components/shared/team-switcher.tsx b/apps/client-ts/src/components/shared/team-switcher.tsx index 181d9a6af..9cf4e523a 100644 --- a/apps/client-ts/src/components/shared/team-switcher.tsx +++ b/apps/client-ts/src/components/shared/team-switcher.tsx @@ -119,7 +119,11 @@ export default function TeamSwitcher({ className, userId }: TeamSwitcherProps) { aria-label="Select a team" className={cn("w-[250px] justify-between", className)} > - {projects && projects.length > 0 ? projects[0].name : "No projects found"} + { + projects && projects.length > 0 + ? projects.find(p => p.id_project === idProject)?.name || "Selected project not found" + : "No projects found" + }