Updated the Writing exercise to have the evaluation in the user solutions instead of the exercise itself

This commit is contained in:
Tiago Ribeiro
2023-06-23 10:28:33 +01:00
parent 9cbb5b93c8
commit b2cc706a5e
5 changed files with 44 additions and 38 deletions

View File

@@ -107,7 +107,7 @@ export default function Writing({id, prompt, info, type, wordCounter, attachment
<Button
color="green"
disabled={!isSubmitEnabled}
onClick={() => onNext({exercise: id, solutions: [inputText], score: {correct: 1, total: 1, missing: 0}, type})}
onClick={() => onNext({exercise: id, solutions: [{id, solution: inputText}], score: {correct: 1, total: 1, missing: 0}, type})}
className="max-w-[200px] self-end w-full">
Next
</Button>