feat: students should move to next lesson on click go to lesson (#230)
* completion * completion * PR Fixes * PR Fixes * fix: progress bug on home page * chore: fix lesson completion issue --------- Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
parent
db38756cbf
commit
1277bcbfc6
@@ -9,6 +9,7 @@
|
||||
import { profile } from '$lib/utils/store/user';
|
||||
import { fetchCourse } from '$lib/utils/services/courses';
|
||||
import { globalStore } from '$lib/utils/store/app';
|
||||
import { lessons } from '../Course/components/Lesson/store/lessons';
|
||||
|
||||
export let courseId = '';
|
||||
export let path = '';
|
||||
@@ -23,6 +24,7 @@
|
||||
|
||||
isFetching = true;
|
||||
course.set(defaultCourse);
|
||||
lessons.set([]);
|
||||
|
||||
const { data: _data } = await fetchCourse(courseId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user