fix: humanize category label in unassigned queue row

Queue payload exposes the field as `category` (aliased from
`competitionCategory`), not `competitionCategory` itself, so the
previous lookup was always undefined and every project rendered as
"No category". Now shows "Startup" / "Business Concept" correctly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matt
2026-04-21 16:40:54 +02:00
parent f1955b68f9
commit fd4f6dde16

View File

@@ -51,7 +51,11 @@ export function RoundUnassignedQueue({ roundId, requiredReviews = 3, onAssignUna
<div className="min-w-0">
<p className="text-sm font-medium truncate">{project.title}</p>
<p className="text-xs text-muted-foreground">
{project.competitionCategory || 'No category'}
{project.category === 'STARTUP'
? 'Startup'
: project.category === 'BUSINESS_CONCEPT'
? 'Business Concept'
: 'No category'}
{project.teamName && ` \u00b7 ${project.teamName}`}
</p>
</div>