fix: lower video completion threshold from 99% to 95%
This commit is contained in:
parent
438bc6cd23
commit
ff63567e86
1 changed files with 2 additions and 2 deletions
|
|
@ -942,8 +942,8 @@ export class CoursesStudentService {
|
||||||
? (video_progress_seconds / video_duration_seconds) * 100
|
? (video_progress_seconds / video_duration_seconds) * 100
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
// Auto-complete at >= 99% OR when video_progress_seconds >= video_duration_seconds
|
// Auto-complete at >= 95% OR when video_progress_seconds >= video_duration_seconds
|
||||||
const isCompleted = (progressPercentage !== null && progressPercentage >= 99) ||
|
const isCompleted = (progressPercentage !== null && progressPercentage >= 95) ||
|
||||||
!!(video_duration_seconds && video_progress_seconds >= video_duration_seconds);
|
!!(video_duration_seconds && video_progress_seconds >= video_duration_seconds);
|
||||||
|
|
||||||
// Save video progress (without marking complete yet)
|
// Save video progress (without marking complete yet)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue