mirror of
https://github.com/sergeyyarkov/educt-client.git
synced 2026-10-11 02:09:08 +03:00
fix: lesson progress
This commit is contained in:
parent
f098b2d096
commit
1b865c6df7
@ -84,7 +84,7 @@ const LessonPage: React.FC<IPageProps> = () => {
|
||||
if (lesson !== null) {
|
||||
(async () => {
|
||||
await fetchCourseLessons(lesson.course_id);
|
||||
lesson.video && (await fetchLessonProgress(lesson.id));
|
||||
(lesson.video || lesson.linked_video_url) && (await fetchLessonProgress(lesson.id));
|
||||
})();
|
||||
}
|
||||
}, [lesson]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user