summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGrail Finder <wohilas@gmail.com>2025-04-05 17:36:52 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-04-05 17:36:52 +0300
commitab6249bd1b9f16bdfdd75c7ea450f1cfd7ee8acd (patch)
tree4fbb8b14f57fa20ca86d7170da239f14a2348531 /components
parent9b962f2f61c058145722312b7f6d5a3c5395ceda (diff)
refactor: update feedback condition to check Requirement instead of Explanation
Diffstat (limited to 'components')
-rw-r--r--components/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index 411165d..50839f4 100644
--- a/components/index.html
+++ b/components/index.html
@@ -14,7 +14,7 @@
{{.Text}}
</div>
<div id="feedback" data-testid="feedback">
- {{if .Correct}}{{template "feedback" .}}{{else if .Explanation}}{{template "feedback" .}}{{end}}
+ {{if .Correct}}{{template "feedback" .}}{{else if .Requirement}}{{template "feedback" .}}{{end}}
{{if .ShowNext}}
<button
hx-get="/next-question?current_id={{.ID}}"