diff --git a/src/components/Exercises/InteractiveSpeaking.tsx b/src/components/Exercises/InteractiveSpeaking.tsx index b1a02924..f397dee1 100644 --- a/src/components/Exercises/InteractiveSpeaking.tsx +++ b/src/components/Exercises/InteractiveSpeaking.tsx @@ -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, diff --git a/src/components/Exercises/Speaking.tsx b/src/components/Exercises/Speaking.tsx index 11786660..4a35458a 100644 --- a/src/components/Exercises/Speaking.tsx +++ b/src/components/Exercises/Speaking.tsx @@ -95,7 +95,7 @@ export default function Speaking({id, title, text, video_url, type, prompts, suf return (