From c2e83a0937e2aa5d1c0e49d9bf626af2c84983fa Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Mon, 3 Nov 2025 17:31:36 -0700 Subject: [PATCH] Adjustments --- web/src/components/card/ClassificationCard.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/src/components/card/ClassificationCard.tsx b/web/src/components/card/ClassificationCard.tsx index 46b850456..6de418446 100644 --- a/web/src/components/card/ClassificationCard.tsx +++ b/web/src/components/card/ClassificationCard.tsx @@ -225,7 +225,9 @@ export function GroupedClassificationCard({ return { ...bestTyped, name: event - ? (event.sub_label ?? t(noClassificationLabel)) + ? event.sub_label && event.sub_label !== "none" + ? event.sub_label + : t(noClassificationLabel) : bestTyped.name, score: event?.data?.sub_label_score || bestTyped.score, }; @@ -315,10 +317,10 @@ export function GroupedClassificationCard({ isMobile && "px-2", )} > - {event?.sub_label + {event?.sub_label && event.sub_label !== "none" ? event.sub_label : t(noClassificationLabel)} - {event?.sub_label && ( + {event?.sub_label && event.sub_label !== "none" && (