diff --git a/src/components/Questions.tsx b/src/components/Questions.tsx index e83f73a..1a5daba 100644 --- a/src/components/Questions.tsx +++ b/src/components/Questions.tsx @@ -60,6 +60,15 @@ const Questions: React.FC = ({ apiUrl }) => { setIsAnswered(true); }; + const goToNextQuestion = () => { + if (currentQuestionIndex < questions.length - 1) { + setCurrentQuestionIndex(currentQuestionIndex + 1); + setIsAnswered(false); + } else { + // Show result + } + }; + return
; };