only 80% of video time required to mark completed

This commit is contained in:
austinkelsay 2024-11-26 15:53:41 -06:00
parent e32e326d17
commit a661cf2518
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02

View File

@ -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();
}