Merged in fix/cockpit (pull request #41)

Fix learningPathForUser

Approved-by: Daniel Egger
This commit is contained in:
Christian Cueni 2023-03-10 09:11:21 +00:00 committed by Daniel Egger
commit bcc35dd019
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export const useLearningPathStore = defineStore({
learningPathForUser: (state) => { learningPathForUser: (state) => {
return (courseSlug: string, userId: string | number | undefined) => { return (courseSlug: string, userId: string | number | undefined) => {
if (state.learningPaths.size > 0) { if (state.learningPaths.size > 0) {
const learningPathKey = getLearningPathKey(courseSlug, userId); const learningPathKey = getLearningPathKey(`${courseSlug}-lp`, userId);
return state.learningPaths.get(learningPathKey); return state.learningPaths.get(learningPathKey);
} }