From a2fba503e36f734a91ba0b3b42e7e51d528df0cb Mon Sep 17 00:00:00 2001 From: achmad Date: Fri, 29 May 2026 02:24:11 +0700 Subject: [PATCH] fix: is_featured 0 rendering as text, cast to boolean --- app/[category]/[slug]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/[category]/[slug]/page.tsx b/app/[category]/[slug]/page.tsx index 4d21a25..cff6551 100644 --- a/app/[category]/[slug]/page.tsx +++ b/app/[category]/[slug]/page.tsx @@ -115,7 +115,7 @@ export default async function ArticlePage({ params }: Props) { )}
- {article.is_featured && ( + {!!article.is_featured && ( Featured