From 0e37af2bb99ead053f79f97a08e90097b06d44a9 Mon Sep 17 00:00:00 2001
From: "Grail Finder (aider)" <wohilas@gmail.com>
Date: Sat, 29 Mar 2025 14:55:08 +0300
Subject: fix: correct template scope and add question ID

---
 components/index.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'components')

diff --git a/components/index.html b/components/index.html
index 76ba0a4..5af9278 100644
--- a/components/index.html
+++ b/components/index.html
@@ -17,7 +17,7 @@
                 {{range $index, $option := .Options}}
                 <button 
                     hx-post="/answer" 
-                    hx-vals='{"selected": "{{$index}}", "question_id": "{{.ID}}"}'
+                    hx-vals='{"selected": "{{$index}}", "question_id": "{{$.ID}}"}'
                     hx-target="#ancestor"
                     hx-swap="outerHTML"
                     class="option-button"
-- 
cgit v1.2.3