fix: is_featured 0 rendering as text, cast to boolean

This commit is contained in:
achmad
2026-05-29 02:24:11 +07:00
parent 953a222b35
commit a2fba503e3
+1 -1
View File
@@ -115,7 +115,7 @@ export default async function ArticlePage({ params }: Props) {
)}
<div className="flex items-center gap-3 py-3.5 border-t border-b border-border mb-8">
{article.is_featured && (
{!!article.is_featured && (
<span className="bg-violet text-white text-[9px] font-bold uppercase tracking-widest px-2 py-1 rounded">
Featured
</span>