From d781acaa8b2d22a52c04e470b146b01c4cb6c390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=9C=85=20Daniel=20Danielecki?= Date: Thu, 3 Oct 2024 08:57:30 +0200 Subject: [PATCH] revert back currentQuestionIndex --- app/exam/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/exam/page.tsx b/app/exam/page.tsx index f7c6b91..bf9fa31 100644 --- a/app/exam/page.tsx +++ b/app/exam/page.tsx @@ -39,7 +39,7 @@ const Exam: NextPage<{ searchParams: { url: string; name: string } }> = ({ useTimer({ minutes: minutes, seconds: seconds }); const [currentQuestion, setCurrentQuestion] = useState(); const [revealExam, setRevealExam] = useState(false); - const [currentQuestionIndex, setCurrentQuestionIndex] = useState(1); + const [currentQuestionIndex, setCurrentQuestionIndex] = useState(0); const [countAnswered, setCountAnswered] = useState(0); const { data, loading, error } = useQuery(questionsQuery, { variables: { range: 30, link: url },