From 1eb63ba7a41b8a20941ef1e1756d9605b6255e52 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 16 Oct 2024 19:50:33 -0500 Subject: [PATCH] fix rounding on score --- web/src/components/input/InputWithTags.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/input/InputWithTags.tsx b/web/src/components/input/InputWithTags.tsx index 102006c60..45dfd6c32 100644 --- a/web/src/components/input/InputWithTags.tsx +++ b/web/src/components/input/InputWithTags.tsx @@ -340,7 +340,7 @@ export default function InputWithTags({ config?.ui.time_format === "24hour" ? endTime : convertTo12Hour(endTime) }`; } else if (filterType === "min_score" || filterType === "max_score") { - return (Number(filterValues) * 100).toString() + "%"; + return Math.round(Number(filterValues) * 100).toString() + "%"; } else { return filterValues as string; }