Skip to content

Commit 901f028

Browse files
committed
[282] fix: progress bar shot pass 100 percent
1 parent fa42c8f commit 901f028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/race/RaceTracker.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function RaceTracker({
1818
inputLength,
1919
user,
2020
}: RaceTrackerProps) {
21-
const progress = (inputLength / codeLength) * 100;
21+
const progress = ((inputLength / codeLength) * 100) % 100;
2222

2323
return (
2424
<div className="relative mb-5 flex items-center">

0 commit comments

Comments
 (0)