Skip to content

Commit

Permalink
fix rounding on score
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Oct 17, 2024
1 parent 3b10792 commit 1eb63ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/components/input/InputWithTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1eb63ba

Please sign in to comment.