Solved some small issues

This commit is contained in:
Tiago Ribeiro
2024-07-22 23:35:22 +01:00
parent bd2efb0ef5
commit a1c7f70329
6 changed files with 579 additions and 880 deletions

View File

@@ -86,7 +86,6 @@ const TaskTab = ({exam, difficulty, setExam}: {exam?: LevelPart; difficulty: Dif
axios
.get(`/api/exam/level/generate/level?${url.toString()}`)
.then((result) => {
console.log({data: result.data});
playSound(typeof result.data === "string" ? "error" : "check");
if (typeof result.data === "string") return toast.error("Something went wrong, please try to generate again.");
setExam(result.data);