summaryrefslogtreecommitdiff
path: root/components/index.html
diff options
context:
space:
mode:
authorGrail Finder (aider) <wohilas@gmail.com>2025-04-05 17:36:57 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-04-05 17:36:57 +0300
commitc2d82a17832590d86c7c243671b64df95913350e (patch)
treeabaf1e843a4bb62aff01a69f34f84138e27f2806 /components/index.html
parentab6249bd1b9f16bdfdd75c7ea450f1cfd7ee8acd (diff)
refactor: track question status using Status field instead of showNext flag
Diffstat (limited to 'components/index.html')
-rw-r--r--components/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index 50839f4..3efca24 100644
--- a/components/index.html
+++ b/components/index.html
@@ -15,7 +15,7 @@
</div>
<div id="feedback" data-testid="feedback">
{{if .Correct}}{{template "feedback" .}}{{else if .Requirement}}{{template "feedback" .}}{{end}}
- {{if .ShowNext}}
+ {{if ne .Status 0}}
<button
hx-get="/next-question?current_id={{.ID}}"
hx-target="#ancestor"