We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 491267b + 830ff5e commit e958cdbCopy full SHA for e958cdb
2 files changed
src/components/course/course-lessons.tsx
@@ -40,11 +40,9 @@ export function CourseLessons({
40
<Link
41
href={
42
isAuthorized
43
- ? ROUTES.COURSES.LESSON(lesson.slug)
+ ? ROUTES.COURSES.LESSON(lesson.id)
44
: ROUTES.AUTH.LOGIN(
45
- ROUTES.COURSES.LESSON(
46
- lesson.slug
47
- )
+ ROUTES.COURSES.LESSON(lesson.id)
48
)
49
}
50
className='flex items-center justify-between p-4 transition-colors hover:bg-muted/50'
src/components/lesson/lesson-sidebar.tsx
@@ -72,7 +72,7 @@ export function LessonSidebar({
72
73
const isActive =
74
pathname ===
75
- ROUTES.COURSES.LESSON(lesson.slug)
76
77
const Icon = isActive
78
? PauseCircle
0 commit comments