Added an exercise to write in blank spaces
This commit is contained in:
@@ -61,7 +61,7 @@ export default function MultipleChoice({prompt, questions, onNext, onBack}: Mult
|
||||
};
|
||||
|
||||
const next = () => {
|
||||
if (questionIndex === questions.length) {
|
||||
if (questionIndex === questions.length - 1) {
|
||||
onNext();
|
||||
} else {
|
||||
setQuestionIndex((prev) => prev + 1);
|
||||
|
||||
Reference in New Issue
Block a user