diff --git a/templates/admin.html b/templates/admin.html
index ab725d9..daf7d92 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -38,7 +38,7 @@
let response = await fetch("/api/endBet", {
method: "POST",
body: JSON.stringify({
- "correct": possible.index(prompt("What was the correct answer?"))
+ "correct": possible.indexOf(prompt("What was the correct answer?"))
})
})
if (response.ok) {
diff --git a/templates/bet.html b/templates/bet.html
index e0adc36..4a9a192 100644
--- a/templates/bet.html
+++ b/templates/bet.html
@@ -40,6 +40,7 @@
document.getElementById("question").innerText = data.question;
outcomes = data.possible;
document.getElementById("possible").innerText = "Possible outcomes: " + outcomes.join(", ");
+ document.getElementById("bet").disabled = false;
// noinspection ES6MissingAwait
updateTimer(data.timeToBet);
} else {