Skip to content

Commit

Permalink
revert back currentQuestionIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldanielecki authored Oct 3, 2024
1 parent 4afdab3 commit d781aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/exam/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Exam: NextPage<{ searchParams: { url: string; name: string } }> = ({
useTimer({ minutes: minutes, seconds: seconds });
const [currentQuestion, setCurrentQuestion] = useState<Question>();
const [revealExam, setRevealExam] = useState<boolean>(false);
const [currentQuestionIndex, setCurrentQuestionIndex] = useState<number>(1);
const [currentQuestionIndex, setCurrentQuestionIndex] = useState<number>(0);
const [countAnswered, setCountAnswered] = useState<number>(0);
const { data, loading, error } = useQuery(questionsQuery, {
variables: { range: 30, link: url },
Expand Down

0 comments on commit d781aca

Please sign in to comment.