From f45ef417f379a4cf8ac6bf3a2d6c339d8351abb6 Mon Sep 17 00:00:00 2001 From: Ayyub Ibrahim Date: Fri, 3 May 2024 01:26:14 -0500 Subject: [PATCH] set type for intervalid --- packages/web/components/HomeResults/QueryResult.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web/components/HomeResults/QueryResult.tsx b/packages/web/components/HomeResults/QueryResult.tsx index 99078de..0ddc035 100644 --- a/packages/web/components/HomeResults/QueryResult.tsx +++ b/packages/web/components/HomeResults/QueryResult.tsx @@ -51,12 +51,12 @@ export default function QueryResult({ card }: { card: ICard }) { const thumbnail = getThumbnail(citations || []); useEffect(() => { - let intervalId = null; + let intervalId: NodeJS.Timeout | null = null; if (isLoading) { intervalId = setInterval(() => { setMsgIndex(prevIndex => (prevIndex + 1) % LOADING_MESSAGES.length); - }, WAIT_MS); + }, 2500); } const channel = supabase.channel(`cards:id=eq.${card.id}`) @@ -123,4 +123,4 @@ export default function QueryResult({ card }: { card: ICard }) { ); -} +} \ No newline at end of file