diff --git a/src/components/Exercises/InteractiveSpeaking.tsx b/src/components/Exercises/InteractiveSpeaking.tsx index a4c7ea22..ec457592 100644 --- a/src/components/Exercises/InteractiveSpeaking.tsx +++ b/src/components/Exercises/InteractiveSpeaking.tsx @@ -76,7 +76,7 @@ export default function InteractiveSpeaking({ onBack({ exercise: id, solutions: [...answers.filter((x) => x.questionIndex !== questionIndex), answer], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, type, }); }; @@ -96,7 +96,7 @@ export default function InteractiveSpeaking({ onNext({ exercise: id, solutions: [...answers.filter((x) => x.questionIndex !== questionIndex), answer], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, type, }); }; @@ -131,7 +131,7 @@ export default function InteractiveSpeaking({ onNext({ exercise: id, solutions: [...answers.filter((x) => x.questionIndex !== questionIndex), answer], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, type, }); } @@ -176,7 +176,7 @@ export default function InteractiveSpeaking({ { exercise: id, solutions: [...answers.filter((x) => x.questionIndex !== questionIndex), answer], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, module: "speaking", exam: examID, type, diff --git a/src/components/Exercises/Speaking.tsx b/src/components/Exercises/Speaking.tsx index 40cb55a9..2adea802 100644 --- a/src/components/Exercises/Speaking.tsx +++ b/src/components/Exercises/Speaking.tsx @@ -81,7 +81,7 @@ export default function Speaking({id, title, text, video_url, type, prompts, use onNext({ exercise: id, solutions: storagePath ? [{id, solution: storagePath}] : [], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, type, }); }; @@ -94,7 +94,7 @@ export default function Speaking({id, title, text, video_url, type, prompts, use onBack({ exercise: id, solutions: storagePath ? [{id, solution: storagePath}] : [], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, type, }); }; diff --git a/src/components/Exercises/Writing.tsx b/src/components/Exercises/Writing.tsx index c8189421..2371ed23 100644 --- a/src/components/Exercises/Writing.tsx +++ b/src/components/Exercises/Writing.tsx @@ -41,7 +41,7 @@ export default function Writing({ if (inputText.length > 0 && saveTimer % 10 === 0) { setUserSolutions([ ...storeUserSolutions.filter((x) => x.exercise !== id), - {exercise: id, solutions: [{id, solution: inputText}], score: {correct: 1, total: 1, missing: 0}, type, module: "writing"}, + {exercise: id, solutions: [{id, solution: inputText}], score: {correct: 100, total: 100, missing: 0}, type, module: "writing"}, ]); } // eslint-disable-next-line react-hooks/exhaustive-deps @@ -65,7 +65,7 @@ export default function Writing({ useEffect(() => { if (hasExamEnded) - onNext({exercise: id, solutions: [{id, solution: inputText}], score: {correct: 1, total: 1, missing: 0}, type, module: "writing"}); + onNext({exercise: id, solutions: [{id, solution: inputText}], score: {correct: 100, total: 100, missing: 0}, type, module: "writing"}); // eslint-disable-next-line react-hooks/exhaustive-deps }, [hasExamEnded]); @@ -148,7 +148,9 @@ export default function Writing({ @@ -159,7 +161,7 @@ export default function Writing({ onNext({ exercise: id, solutions: [{id, solution: inputText.replaceAll(/\s{2,}/g, " ")}], - score: {correct: 1, total: 1, missing: 0}, + score: {correct: 100, total: 100, missing: 0}, type, module: "writing", })