From a661cf25180922087bc56668e17b4a5fb425da37 Mon Sep 17 00:00:00 2001 From: austinkelsay <austinkelsay@yahoo.com> Date: Tue, 26 Nov 2024 15:53:41 -0600 Subject: [PATCH] only 80% of video time required to mark completed --- src/hooks/tracking/useTrackVideoLesson.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/tracking/useTrackVideoLesson.js b/src/hooks/tracking/useTrackVideoLesson.js index 9a77669..9f86415 100644 --- a/src/hooks/tracking/useTrackVideoLesson.js +++ b/src/hooks/tracking/useTrackVideoLesson.js @@ -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(); }