Skip to content

Commit 5ba648f

Browse files
committed
Fix bar not filling properly
1 parent cd09189 commit 5ba648f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/LoadingBar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const LoadingBar = ({ value }: LoadingBarProps): JSX.Element => {
1010

1111
useEffect(() => {
1212
if (ref.current) {
13-
ref.current.style.width = value + "%";
13+
ref.current.style.width = value * 100 + "%";
1414
}
1515
}, [value]);
1616

0 commit comments

Comments
 (0)