summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demoon.dbbin36864 -> 1544192 bytes
-rw-r--r--internal/handlers/main.go2
2 files changed, 1 insertions, 1 deletions
diff --git a/demoon.db b/demoon.db
index 1536d17..f7b60c7 100644
--- a/demoon.db
+++ b/demoon.db
Binary files differ
diff --git a/internal/handlers/main.go b/internal/handlers/main.go
index 5e1b8ae..b907a34 100644
--- a/internal/handlers/main.go
+++ b/internal/handlers/main.go
@@ -78,7 +78,7 @@ func (h *Handlers) HandleAnswer(w http.ResponseWriter, r *http.Request) {
abortWithError(w, "Invalid answer selection")
return
}
-
+ selectedIdx++ // in db index starts from 1
feedback := ""
if selectedIdx == int(question.CorrectIndex) {
feedback = `<div data-testid="feedback" class="feedback">Correct! 🎉</div>`