Skip to content

Commit

Permalink
fix: made loader faster
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Apr 11, 2024
1 parent 44d81f5 commit fbbe0a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/loader/loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const LoaderDots: FC<Props> = ({ className }: Props) => {
useEffect(() => {
const intervalId = window.setInterval(() => {
setDots((prevDots) => (prevDots.length > 2 ? "." : `${prevDots}.`));
}, 1000);
}, 300);

return () => {
clearInterval(intervalId);
Expand Down

0 comments on commit fbbe0a2

Please sign in to comment.