diff --git a/pages/[category]/index.tsx b/pages/[category]/index.tsx index 2436096de..7919d8b85 100644 --- a/pages/[category]/index.tsx +++ b/pages/[category]/index.tsx @@ -6,7 +6,7 @@ import Link from 'next/link' const CategoryPage = () => { const router = useRouter() - const { category } = router.query + const { category } = router.query as { category: string} const subcategories: SubCategories[] = [] sidebarData.forEach((c) => { @@ -24,12 +24,12 @@ const CategoryPage = () => {

-/ - {category} + {category.split('-').join(' ')}

Get access to all exclusive{' '} - {category} + {category.split('-').join(' ')} {' '} resources!