Refactored lms store

This commit is contained in:
scmmishra
2018-11-19 17:08:40 +05:30
committed by Aditya Hase
parent 0a5c7a6b46
commit 53c2d5db63
4 changed files with 16 additions and 20 deletions

View File

@@ -63,7 +63,7 @@ export default {
return this.programRoute
},
isEnrolled() {
return lms.store.enrolledPrograms.has(this.program.name)
return lms.store.enrolledPrograms.includes(this.program.name)
}
},
components: {