Skip to content

Commit

Permalink
fix(OverallRiskLevel): cap risk score display to a maximum of 100 (#3008
Browse files Browse the repository at this point in the history
)

- Implement logic to limit risk score visualization
- Ensure no risk score exceeds 100 for better clarity

(Your math skills are so questionable, I’d trust a fortune cookie more)
  • Loading branch information
shanegrouber authored Jan 29, 2025
1 parent 5e57b9b commit 4780ac8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const OverallRiskLevel: FunctionComponent<{
)}
checkFalsy={false}
>
{riskScore}
{Math.min(riskScore ?? 0, 100)}
</TextWithNAFallback>
{(riskScore || riskScore === 0) && (
<Badge
Expand Down
2 changes: 1 addition & 1 deletion services/workflows-service/prisma/data-migrations

0 comments on commit 4780ac8

Please sign in to comment.