Skip to content
Snippets Groups Projects
Commit 6f8cd534 authored by yazSpaz's avatar yazSpaz
Browse files

fixed 0 score showing for new attempts

parents f08b1728 b3757765
Branches
No related tags found
No related merge requests found
......@@ -176,7 +176,10 @@ document.addEventListener("DOMContentLoaded", function () {
console.log(" > ID:", q.question_id, "Type:", q.type, "typeof ID:", typeof q.question_id);
});
console.log("🧾 Final questions payload:", testData.questions);
if (!testData.name || !testData.cohort) {
alert("Please enter a test name and cohort.");
return;
}
fetch("/save-test", {
method: "POST",
headers: { "Content-Type": "application/json" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment