mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Fix condition in track video lesson
This commit is contained in:
parent
069b92d634
commit
17928584f0
@ -41,7 +41,7 @@ const useTrackVideoLesson = ({lessonId, videoDuration, courseId, videoPlayed, pa
|
||||
decryptionPerformed
|
||||
});
|
||||
|
||||
if (paidCourse === false || (paidCourse && decryptionPerformed)) {
|
||||
if (!paidCourse || (paidCourse && decryptionPerformed)) {
|
||||
console.log('📝 [useTrackVideoLesson] Creating new lesson entry');
|
||||
await axios.post(`/api/users/${session.user.id}/lessons?courseId=${courseId}`, {
|
||||
resourceId: lessonId,
|
||||
|
Loading…
x
Reference in New Issue
Block a user