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:
@@ -51,7 +51,11 @@ export function RoundUnassignedQueue({ roundId, requiredReviews = 3, onAssignUna
|
|||||||
<div className="min-w-0">
|
<div className="min-w-0">
|
||||||
<p className="text-sm font-medium truncate">{project.title}</p>
|
<p className="text-sm font-medium truncate">{project.title}</p>
|
||||||
<p className="text-xs text-muted-foreground">
|
<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}`}
|
{project.teamName && ` \u00b7 ${project.teamName}`}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user