diff options
Diffstat (limited to 'internal/handlers/main.go')
-rw-r--r-- | internal/handlers/main.go | 2 |
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 } |