You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consthandleSubmit=(e: React.FormEvent<HTMLFormElement>)=>{e.preventDefault();//If the correct answer isn't shown (before first form submit), check if the answer is correct by calling the check method on the questionAnswerRef//Else navigate to the next question (before second form submit)if(!showAnswer){setAnswerCorrect(questionAnswerRef.current?.checkAnswer()||false);setShowAnswer(true);}else{questionDataRef.current?.scrollTo({top: 0,behavior: "auto"});questionAnswerRef.current?.resetSelection();//!updated partnavigateToNextQuestion();setShowAnswer(false);}};
Edit: Choose a different option as this didn't fix instances where the user used the navigation buttons
No description provided.
The text was updated successfully, but these errors were encountered: