Skip to content

Commit 341613d

Browse files
authored
Merge pull request #1257 from dacadeorg/fix/learning-module-page-navigation
fix: show 'next' button on challenge/learning-modules page
2 parents 247cf8b + e54e966 commit 341613d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/sections/courses/PageNavigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function PageNavigation(): ReactElement {
8787
*/
8888
const nextUrl: string | null = useMemo(() => {
8989
const index = currentIndex + 1;
90-
if (index < list?.length - 1 && list[index]?.link) {
90+
if (currentIndex < list?.length - 1 && list[index]?.link) {
9191
return list[index].link;
9292
}
9393
return null;

0 commit comments

Comments
 (0)