Skip to content

Commit 194a376

Browse files
authored
Merge pull request #283 from phoukiethseng/282-progress-bar-pass-100-percent
[282] fix: progress bar shot pass 100 percent
2 parents fa42c8f + 901f028 commit 194a376

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)