Fix learningPathForUser
This commit is contained in:
parent
a66ead9159
commit
9b594a60c4
|
|
@ -33,7 +33,7 @@ export const useLearningPathStore = defineStore({
|
|||
learningPathForUser: (state) => {
|
||||
return (courseSlug: string, userId: string | number | undefined) => {
|
||||
if (state.learningPaths.size > 0) {
|
||||
const learningPathKey = getLearningPathKey(courseSlug, userId);
|
||||
const learningPathKey = getLearningPathKey(`${courseSlug}-lp`, userId);
|
||||
return state.learningPaths.get(learningPathKey);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue