Fix handling of visible solutions on survey page

This commit is contained in:
Ramon Wenger 2021-01-19 17:03:28 +01:00
parent bfbc7b3d8f
commit 761ae312e2
1 changed files with 1 additions and 1 deletions

View File

@ -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?