From 500b02cb99a76e1d4aecffcadde74fb6bd66d591 Mon Sep 17 00:00:00 2001 From: PxlSyl Date: Sat, 27 Apr 2024 09:27:27 +0200 Subject: [PATCH] fix featured filtering --- app/[locale]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/[locale]/page.tsx b/app/[locale]/page.tsx index 2c8ff17..817e336 100644 --- a/app/[locale]/page.tsx +++ b/app/[locale]/page.tsx @@ -12,7 +12,7 @@ export default async function Page({ params: { locale } }: HomeProps) { const sortedPosts = sortPosts(allBlogs) const posts = allCoreContent(sortedPosts) return <> - {posts.some(post => post.featured) && } +{posts.filter(post => post.language === locale).some(post => post.featured) && }
}