Skip to content

Commit

Permalink
Merge pull request #2257 from sendyputra/fix-progress-value-width
Browse files Browse the repository at this point in the history
fix: improve progress value calculation by rounding to ensure precise…
  • Loading branch information
Viraj-10 authored Jul 15, 2024
2 parents 80896d0 + 54125e3 commit c9d607e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/unstyled/progress/src/Progress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useProgress = ({
}) => {
const valueWidth =
value < max && value > min
? ((value - min) / (max - min)) * 100
? Math.round(((value - min) / (max - min)) * 100)
: value > min
? 100
: 0;
Expand Down

0 comments on commit c9d607e

Please sign in to comment.