From b8616490acd715433458da8641f9f4a70cb1c1c0 Mon Sep 17 00:00:00 2001 From: "Grail Finder (aider)" Date: Sat, 5 Apr 2025 18:12:46 +0300 Subject: fix: correct type mismatch in answer comparison --- internal/handlers/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3