summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/main.go b/internal/handlers/main.go
index af8dbc7..3524241 100644
--- a/internal/handlers/main.go
+++ b/internal/handlers/main.go
@@ -86,7 +86,7 @@ func (h *Handlers) HandleAnswer(w http.ResponseWriter, r *http.Request) {
return
}
question.Status = 2
- if selectedIndex == question.CorrectIndex {
+ if selectedIdx == int(question.CorrectIndex) {
question.Status = 1
}