diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index 5930ab0210..e0f9e05774 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -365,7 +365,7 @@ function ObjectDetailsTab({ }, [search]); const snapScore = useMemo(() => { - if (!search) { + if (!search?.has_snapshot) { return 0; } @@ -786,14 +786,16 @@ function ObjectDetailsTab({ {topScore}%{subLabelScore && ` (${subLabelScore}%)`} -
-
-
- {t("details.snapshotScore.label")} + {snapScore && ( +
+
+
+ {t("details.snapshotScore.label")} +
+
{snapScore}%
-
{snapScore}%
-
+ )} {averageEstimatedSpeed && (