From eb23f74a40d374a364e75f9587edfd8fba948454 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 5 May 2025 00:54:41 +0200 Subject: [PATCH] Fix reader next chapter visibility detection --- src/modules/reader/utils/Reader.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/reader/utils/Reader.utils.ts b/src/modules/reader/utils/Reader.utils.ts index e933afce..c30010b8 100644 --- a/src/modules/reader/utils/Reader.utils.ts +++ b/src/modules/reader/utils/Reader.utils.ts @@ -334,7 +334,7 @@ export const getPreviousNextChapterVisibility = ( const isPreviousChapterVisible = isPreviousChapterLoaded && !isPreviousChapterPreloading; const isNextChapterLoaded = !!chaptersToRender[chapterIndex - 1]; - const isNextChapterLastTrailingChapter = chapterIndex - 1 < 0; + const isNextChapterLastTrailingChapter = chapterIndex - 1 <= 0; const isNextChapterPreloading = isNextChapterLastTrailingChapter && visibleChapters.isTrailingChapterPreloadMode; const isNextChapterVisible = isNextChapterLoaded && !isNextChapterPreloading;