Skip to content

Commit d781aca

Browse files
revert back currentQuestionIndex
1 parent 4afdab3 commit d781aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/exam/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Exam: NextPage<{ searchParams: { url: string; name: string } }> = ({
3939
useTimer({ minutes: minutes, seconds: seconds });
4040
const [currentQuestion, setCurrentQuestion] = useState<Question>();
4141
const [revealExam, setRevealExam] = useState<boolean>(false);
42-
const [currentQuestionIndex, setCurrentQuestionIndex] = useState<number>(1);
42+
const [currentQuestionIndex, setCurrentQuestionIndex] = useState<number>(0);
4343
const [countAnswered, setCountAnswered] = useState<number>(0);
4444
const { data, loading, error } = useQuery(questionsQuery, {
4545
variables: { range: 30, link: url },

0 commit comments

Comments
 (0)