From fbbe0a2185c2def67364f2be84af458981992fef Mon Sep 17 00:00:00 2001 From: malmen237 Date: Thu, 11 Apr 2024 10:03:13 +0200 Subject: [PATCH] fix: made loader faster --- src/components/loader/loader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/loader/loader.tsx b/src/components/loader/loader.tsx index 5c6d5e82..6a3c235c 100644 --- a/src/components/loader/loader.tsx +++ b/src/components/loader/loader.tsx @@ -84,7 +84,7 @@ export const LoaderDots: FC = ({ className }: Props) => { useEffect(() => { const intervalId = window.setInterval(() => { setDots((prevDots) => (prevDots.length > 2 ? "." : `${prevDots}.`)); - }, 1000); + }, 300); return () => { clearInterval(intervalId);