From 7f4849c575ec4d0bb1c9ed5b3786ece4b774af93 Mon Sep 17 00:00:00 2001 From: andrea Date: Wed, 12 Jul 2023 10:53:53 +0200 Subject: [PATCH] Change check on correct answer --- store/file/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/file/file.go b/store/file/file.go index e1f1d1a..2255788 100644 --- a/store/file/file.go +++ b/store/file/file.go @@ -167,7 +167,7 @@ func MarkdownFromQuiz(quiz *models.Quiz) (string, error) { var otherAnswers string for _, answer := range quiz.Answers { - if quiz.Correct != answer { + if quiz.Correct.ID != answer.ID { otherAnswers += "* " + answer.Text + "\n" } }