Fix learningPathForUser

This commit is contained in:
Christian Cueni 2023-03-10 09:41:41 +01:00
parent a66ead9159
commit 9b594a60c4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}