Skip to content

Commit e54e966

Browse files
fix: show 'next' buttton on challenge/learning-modules page
1 parent 247cf8b commit e54e966

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)