From 7c89ca833891f2824f6f40a654be5f64a1a12726 Mon Sep 17 00:00:00 2001 From: Fayorg Date: Wed, 20 Dec 2023 10:52:09 +0100 Subject: [PATCH] fix: auto-refresh --- app/results/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/results/[id]/page.tsx b/app/results/[id]/page.tsx index 0920b07..25f403e 100644 --- a/app/results/[id]/page.tsx +++ b/app/results/[id]/page.tsx @@ -24,7 +24,7 @@ export default function Page({ params }: { params: { id: string } }) { useEffect(() => { featchResults(testId); - setTimeout(() => { + setInterval(() => { featchResults(testId); }, 5000); }, [testId]);