From 8fefded8dcad357be9c3dc0c56aa92b3bc056eda Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:31:20 -0500 Subject: [PATCH] Fix score in search details dialog for old events (#14541) --- web/src/components/overlay/detail/SearchDetailDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/overlay/detail/SearchDetailDialog.tsx b/web/src/components/overlay/detail/SearchDetailDialog.tsx index f443c9d44..78796036f 100644 --- a/web/src/components/overlay/detail/SearchDetailDialog.tsx +++ b/web/src/components/overlay/detail/SearchDetailDialog.tsx @@ -287,7 +287,7 @@ function ObjectDetailsTab({ return 0; } - const value = search.data.top_score; + const value = search.data.top_score ?? search.top_score ?? 0; return Math.round(value * 100); }, [search]);