bugsfixed and design changes for generation 13'' screen

This commit is contained in:
José Lima
2025-02-23 18:47:57 +00:00
parent fec3b51553
commit 340ff5a30a
29 changed files with 2292 additions and 1680 deletions

View File

@@ -140,10 +140,10 @@ export default function ExamPage({
useEvaluationPolling(sessionId ? [sessionId] : [], "exam", user?.id);
useEffect(() => {
/* useEffect(() => {
setModuleLock(true);
}, [flags.finalizeModule]);
*/
useEffect(() => {
if (flags.finalizeModule && !showSolutions) {
if (
@@ -183,9 +183,9 @@ export default function ExamPage({
})
);
const updatedSolutions = userSolutions.map((solution) => {
const completed = results
.filter((r) => r !== null)
.find((c: any) => c.exercise === solution.exercise);
const completed = results.find(
(c: any) => c && c.exercise === solution.exercise
);
return completed || solution;
});
setUserSolutions(updatedSolutions);