Update src/pages/course/[slug]/index.js

Fix tab condition

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Austin Kelsay 2025-04-14 12:00:56 -05:00 committed by austinkelsay
parent dae3ed5ad9
commit d9e68ea18e
No known key found for this signature in database
GPG Key ID: 5A763922E5BA08EE

View File

@ -584,7 +584,7 @@ const Course = () => {
onLessonSelect={(index) => {
handleLessonSelect(index);
if (isMobileView) {
toggleTab(getTabItems().findIndex(item => item.label === 'Lesson Content'));
toggleTab(getTabItems().findIndex(item => item.label === 'Content'));
}
}}
completedLessons={completedLessons}