fix: resolve website typescript errors from category i18n

This commit is contained in:
Your Name committed 2026-06-14 00:10:19 -04:00
1 parent 93012a3bdf
commit 363be70e11
8 files changed
+25 -25

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ export default function Footer({ categories = [] }: FooterProps) {
<div className="flex flex-col space-y-2 text-sm text-slate-400">
{categories.map((c) => (
<Link key={c.id} href={`/category/${c.id}`} className="hover:text-white transition-colors">
{c.name}
{typeof c.name === 'string' ? c.name : (c.name as any)?.th || (c.name as any)?.en || ''}
</Link>
))}
</div>