Bug fixing:
- Prevented the viewing of the exam solutions to generate another record; - Made it so the solution is the same after viewing the results;
This commit is contained in:
@@ -5,6 +5,7 @@ import {Fragment, useEffect, useState} from "react";
|
||||
import Button from "../Low/Button";
|
||||
import dynamic from "next/dynamic";
|
||||
import axios from "axios";
|
||||
import {speakingReverseMarking} from "@/utils/score";
|
||||
|
||||
const Waveform = dynamic(() => import("../Waveform"), {ssr: false});
|
||||
|
||||
@@ -78,7 +79,7 @@ export default function Speaking({id, type, title, text, prompts, userSolutions,
|
||||
onBack({
|
||||
exercise: id,
|
||||
solutions: userSolutions,
|
||||
score: {correct: 1, total: 1, missing: 0},
|
||||
score: {total: 100, missing: 0, correct: speakingReverseMarking[userSolutions[0]!.evaluation!.overall] || 0},
|
||||
type,
|
||||
})
|
||||
}
|
||||
@@ -91,7 +92,7 @@ export default function Speaking({id, type, title, text, prompts, userSolutions,
|
||||
onNext({
|
||||
exercise: id,
|
||||
solutions: userSolutions,
|
||||
score: {correct: 1, total: 1, missing: 0},
|
||||
score: {total: 100, missing: 0, correct: speakingReverseMarking[userSolutions[0]!.evaluation!.overall] || 0},
|
||||
type,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user