Skip to content

Commit

Permalink
Update Questions.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim-Halil-Kuray committed Oct 29, 2023
1 parent a1a26a9 commit b47443a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/Questions.tsx
Expand Up @@ -60,6 +60,15 @@ const Questions: React.FC<QuestionsProps> = ({ apiUrl }) => {
setIsAnswered(true);
};

const goToNextQuestion = () => {
if (currentQuestionIndex < questions.length - 1) {
setCurrentQuestionIndex(currentQuestionIndex + 1);
setIsAnswered(false);
} else {
// Show result
}
};

return <div></div>;
};

Expand Down

0 comments on commit b47443a

Please sign in to comment.