Fixed some more issues with the Speaking
This commit is contained in:
@@ -60,13 +60,16 @@ export default function InteractiveSpeaking({
|
||||
setIsLoading(true);
|
||||
|
||||
const answer = await saveAnswer(questionIndex);
|
||||
console.log(questionIndex + 1 < prompts.length, questionIndex, prompts.length);
|
||||
if (questionIndex + 1 < prompts.length) {
|
||||
setQuestionIndex(questionIndex + 1);
|
||||
setIsLoading(false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
setIsLoading(false);
|
||||
setQuestionIndex(0);
|
||||
|
||||
onNext({
|
||||
exercise: id,
|
||||
|
||||
Reference in New Issue
Block a user