diff options
author | Grail Finder <wohilas@gmail.com> | 2025-04-05 17:36:52 +0300 |
---|---|---|
committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-04-05 17:36:52 +0300 |
commit | ab6249bd1b9f16bdfdd75c7ea450f1cfd7ee8acd (patch) | |
tree | 4fbb8b14f57fa20ca86d7170da239f14a2348531 | |
parent | 9b962f2f61c058145722312b7f6d5a3c5395ceda (diff) |
refactor: update feedback condition to check Requirement instead of Explanation
-rw-r--r-- | components/index.html | 2 |
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}}" |