diff --git a/web/src/components/SectionNav.tsx b/web/src/components/SectionNav.tsx index cc33199..806e985 100644 --- a/web/src/components/SectionNav.tsx +++ b/web/src/components/SectionNav.tsx @@ -15,7 +15,7 @@ import { Link } from 'react-router-dom' import type { Window as WindowName } from '../api/generated/Window' -import { href, isStandings, type Route, SECTIONS } from '../lib/routes' +import { href, isStandings, type Route, SECTIONS, sectionOf } from '../lib/routes' export function SectionNav({ chain, @@ -31,6 +31,7 @@ export function SectionNav({ if (!chain) return null // The standings are current when nothing else is: no panel open, no index. const onStandings = isStandings(route) + const current = sectionOf(route) return (