Prepared the code to later handle the evaluation of the Interactive Speaking exercise

This commit is contained in:
Tiago Ribeiro
2023-09-17 08:56:00 +01:00
parent 161d5236b4
commit efb341355d
5 changed files with 109 additions and 131 deletions

View File

@@ -62,7 +62,7 @@ const ExamLoader = () => {
setIsLoading(true);
if (selectedModule && examId) {
const exam = await getExamById(selectedModule, examId);
const exam = await getExamById(selectedModule, examId.trim());
if (!exam) {
toast.error("Unknown Exam ID! Please make sure you selected the right module and entered the right exam ID", {
toastId: "invalid-exam-id",