Made it so the code remembers the user's previous answers to current exercises
This commit is contained in:
@@ -177,7 +177,11 @@ export default function Speaking({id, title, text, type, prompts, onNext, onBack
|
||||
/>
|
||||
|
||||
<div className="self-end flex justify-between w-full gap-8">
|
||||
<Button color="green" variant="outline" onClick={onBack} className="max-w-[200px] self-end w-full">
|
||||
<Button
|
||||
color="green"
|
||||
variant="outline"
|
||||
onClick={() => onBack({exercise: id, solutions: [], score: {correct: 1, total: 1}, type})}
|
||||
className="max-w-[200px] self-end w-full">
|
||||
Back
|
||||
</Button>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user