summaryrefslogtreecommitdiff
path: root/components/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'components/index.html')
-rw-r--r--components/index.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/index.html b/components/index.html
index 4b46fbf..411165d 100644
--- a/components/index.html
+++ b/components/index.html
@@ -14,7 +14,7 @@
{{.Text}}
</div>
<div id="feedback" data-testid="feedback">
- {{if not .Correct}}Try Again{{else}}{{template "feedback" .}}{{end}}
+ {{if .Correct}}{{template "feedback" .}}{{else if .Explanation}}{{template "feedback" .}}{{end}}
{{if .ShowNext}}
<button
hx-get="/next-question?current_id={{.ID}}"
@@ -26,7 +26,6 @@
</button>
{{end}}
</div>
- {{template "feedback" .}}
<div id="options">
<button
data-testid="option1"