From 9b594a60c4a43231a1b48f667f814a12529cb4f2 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Fri, 10 Mar 2023 09:41:41 +0100 Subject: [PATCH] Fix learningPathForUser --- client/src/stores/learningPath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/stores/learningPath.ts b/client/src/stores/learningPath.ts index 014d249e..fcdd6e74 100644 --- a/client/src/stores/learningPath.ts +++ b/client/src/stores/learningPath.ts @@ -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); }