mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-05 00:32:03 +00:00
only 80% of video time required to mark completed
This commit is contained in:
parent
e32e326d17
commit
a661cf2518
@ -104,7 +104,7 @@ const useTrackVideoLesson = ({lessonId, videoDuration, courseId, videoPlayed, pa
|
||||
useEffect(() => {
|
||||
if (isAdmin) return;
|
||||
|
||||
if (videoDuration && timeSpent >= Math.round(videoDuration * 0.9) && !completedRef.current) {
|
||||
if (videoDuration && timeSpent >= Math.round(videoDuration * 0.8) && !completedRef.current) {
|
||||
console.log('🎯 Video reached 90% threshold - Marking as completed');
|
||||
markLessonAsCompleted();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user