Image Analysis - v0 by VercelImage Analysis - v0 by Vercel
after 10 questions it goes to loading
image.png
179d ago
I've fixed the quiz completion logic by reordering the condition check in the selectAnswer function. The issue was that after answering the 10th question, the code was trying to access an 11th question that doesn't exist, causing the loading state to appear. Now it properly transitions to the results screen immediately after answering the final question.