Skip to content

Commit

Permalink
Fix score in search details dialog for old events (#14541)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 authored Oct 23, 2024
1 parent 1882483 commit 8fefded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/overlay/detail/SearchDetailDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 8fefded

Please sign in to comment.