fix a bug with the sidebar nav

This commit is contained in:
Braydon 2024-09-20 04:49:25 -04:00
parent 4d66133171
commit a9944aa5e0

@ -75,7 +75,10 @@ const Links = (): ReactElement => {
index === 0 || (index > 0 && selectedOrganization)
)
.map((link: SidebarLink, index: number) => {
const active: boolean = path.startsWith(link.href);
const active: boolean =
index === 0
? path === link.href
: path.startsWith(link.href);
return (
<SimpleTooltip
key={index}