diff --git a/components/landing-page/citizen-news/header-citizen.tsx b/components/landing-page/citizen-news/header-citizen.tsx index 675e066..f964133 100644 --- a/components/landing-page/citizen-news/header-citizen.tsx +++ b/components/landing-page/citizen-news/header-citizen.tsx @@ -44,10 +44,10 @@ export default function HeaderCitizen() { endDate: null, }); - const pathname = usePathname(); // e.g., "/category/development" - const pathSegments = pathname.split("/").filter(Boolean); // ["category", "development"] + const pathname = usePathname(); + const pathSegments = pathname.split("/").filter(Boolean); - const categorySlug = pathSegments[1]; // "development" + const categorySlug = pathSegments[1]; const categoryLabel = slugToLabel(categorySlug); useEffect(() => { @@ -96,7 +96,6 @@ export default function HeaderCitizen() {