fix(admin): update Category resolution type check in Products.tsx

This commit is contained in:
parsa aghaei committed 2026-08-03 12:02:46 +03:30
1 parent 68c7656964
commit 38261c2f76
1 file changed
+1 -1
+1 -1
View File
@@ -350,7 +350,7 @@ export default function Products() {
<td className="py-4 px-6 text-gray-600 text-sm">
{typeof product.category === 'object' && product.category !== null
? (product.category.nameFa || product.category.name || 'بدون دسته')
: (product.category || 'بدون دسته')}
: (typeof product.category === 'string' ? product.category : 'بدون دسته')}
</td>
<td className="py-4 px-6">
<div className="flex flex-col">