diff --git a/app/routes/_news.category.$code.tsx b/app/routes/_news.category.$code.tsx index 6fbfef0..1071fb2 100644 --- a/app/routes/_news.category.$code.tsx +++ b/app/routes/_news.category.$code.tsx @@ -6,7 +6,7 @@ import type { Route } from './+types/_news.category.$code' export const loader = async ({ params }: Route.LoaderArgs) => { const { data: categoriesData } = await getCategories() const categoryData = categoriesData.find( - (category) => category.id === params.id, + (category) => category.code === params.code, ) return { categoryData } }