From 761ae312e2f14472ac9f5d3ca00d1ed973d3d2e3 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 19 Jan 2021 17:03:28 +0100 Subject: [PATCH] Fix handling of visible solutions on survey page --- client/src/pages/survey.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/survey.vue b/client/src/pages/survey.vue index cec6eeb5..5b8ea7b0 100644 --- a/client/src/pages/survey.vue +++ b/client/src/pages/survey.vue @@ -55,7 +55,7 @@ export default { return this.survey && this.survey.isCompleted; }, showSolution() { - return (module.solutionsEnabled || isTeacher) && !this.survey.isCompleted; + return (this.module.solutionsEnabled || this.isTeacher) && !this.survey.isCompleted; }, solution() { // todo: should this be done inside of Solution.vue?