Improved an error we had before
This commit is contained in:
@@ -142,7 +142,7 @@ export default function Page() {
|
||||
const updateExamWithUserSolutions = (exam: Exam): Exam => {
|
||||
const exercises = exam.exercises.map((x) => Object.assign(x, {userSolutions: userSolutions.find((y) => x.id === y.exercise)?.solutions}));
|
||||
|
||||
return Object.assign(exam, exercises);
|
||||
return Object.assign(exam, {exercises});
|
||||
};
|
||||
|
||||
const onFinish = (solutions: UserSolution[]) => {
|
||||
@@ -291,6 +291,7 @@ export default function Page() {
|
||||
abandonPopupDescription="Are you sure you want to leave the exercise? You will lose all your progress."
|
||||
abandonConfirmButtonText="Confirm"
|
||||
onAbandon={() => {
|
||||
alert("HERE");
|
||||
reset();
|
||||
setShowAbandonPopup(false);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user