From 1d161f6c976c6008b72f9853e0ca665a5dbae510 Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Fri, 27 Oct 2023 20:05:51 +0530 Subject: [PATCH] fix: standalone build failure due to ts error --- frontend/src/components/v2/ContentLoader/ContentLoader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/v2/ContentLoader/ContentLoader.tsx b/frontend/src/components/v2/ContentLoader/ContentLoader.tsx index af83ac81ca..f43ee923ce 100644 --- a/frontend/src/components/v2/ContentLoader/ContentLoader.tsx +++ b/frontend/src/components/v2/ContentLoader/ContentLoader.tsx @@ -13,7 +13,7 @@ export const ContentLoader = ({ text, frequency = 2000 }: Props) => { const [pos, setPos] = useState(0); const isTextArray = Array.isArray(text); useEffect(() => { - let interval: NodeJS.Timer; + let interval: NodeJS.Timeout; if (isTextArray) { interval = setInterval(() => { setPos((state) => (state + 1) % text.length);