Hide All projects covered message while AI job is running

The empty state message was incorrectly showing during AI processing.
Now it only shows when job is complete and there are no suggestions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-05 14:53:45 +01:00
parent 3abfccb22a
commit c82406abcf

View File

@@ -627,7 +627,10 @@ function AssignmentManagementContent({ roundId }: { roundId: string }) {
</div>
)}
{loadingSuggestions && !isAIJobRunning ? (
{isAIJobRunning ? (
// Don't show suggestions section while AI job is running - progress is shown above
null
) : loadingSuggestions ? (
<div className="flex items-center justify-center py-8">
<Loader2 className="h-8 w-8 animate-spin text-muted-foreground" />
</div>