Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score failed to work #1

Open
rahmatulloh19 opened this issue Apr 27, 2024 · 0 comments
Open

Score failed to work #1

rahmatulloh19 opened this issue Apr 27, 2024 · 0 comments

Comments

@rahmatulloh19
Copy link

The handleAnswer function is wrong working on the quiz page

image

The Score increases again when you click too much on the correct answer

I just clicked correct answers and I got this

image

I did the following to solve the problem

image

In this code, I added a condition to the function's currentQuestionIndex >= score, which helped me count the score. If the question index is large or equal to the score, the score count increases to one.

May its helpful :)

rahmatulloh19 added a commit to rahmatulloh19/quizz-ai that referenced this issue Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant