From 89b81de8301761c9852ec4f8f97bd840a10cb1c9 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 12 Dec 2024 12:56:40 +0100 Subject: [PATCH] Handle ".5" chapters in chapter transition warning ".5" chapters would incorrectly trigger the missing chapter warning --- src/modules/reader/services/ReaderControls.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/reader/services/ReaderControls.ts b/src/modules/reader/services/ReaderControls.ts index 76208cce..c2aca0a3 100644 --- a/src/modules/reader/services/ReaderControls.ts +++ b/src/modules/reader/services/ReaderControls.ts @@ -192,7 +192,7 @@ export class ReaderControls { const missingChapters = Math.abs(currentChapter.chapterNumber - chapterToOpen.chapterNumber); const isSameScanlator = currentChapter.scanlator === chapterToOpen.scanlator; - const isContinuousChapter = missingChapters === 1; + const isContinuousChapter = missingChapters <= 1; const showWarning = !isSameScanlator || !isContinuousChapter; if (!showWarning) {