fix: lesson progress

This commit is contained in:
Sergey Yarkov 2022-06-12 20:02:22 +03:00
parent f098b2d096
commit 1b865c6df7

View File

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