diff --git a/web/src/components/card/ClassificationCard.tsx b/web/src/components/card/ClassificationCard.tsx index bf91d89c2..7001776bd 100644 --- a/web/src/components/card/ClassificationCard.tsx +++ b/web/src/components/card/ClassificationCard.tsx @@ -233,7 +233,7 @@ export function GroupedClassificationCard({ }); if (!best) { - return group.at(-1); + best = group.at(-1)!; } const bestTyped: ClassificationItemData = best;