diff --git a/src/screens/Reader.tsx b/src/screens/Reader.tsx index c7f1d76b..94213b70 100644 --- a/src/screens/Reader.tsx +++ b/src/screens/Reader.tsx @@ -224,7 +224,7 @@ export function Reader() { }; const currentChapter = getChapterFromCache(chapter.id); - const nextChapterId = mangaChapters?.[Number(chapterIndex) + 1]?.id; + const nextChapterId = mangaChapters?.[(mangaChapters?.length ?? 0) - Number(chapterIndex) - 1]?.id; const nextChapter = nextChapterId ? getChapterFromCache(nextChapterId) : null; const shouldDownloadAhead =