diff --git a/src/modules/chapter/services/Chapters.ts b/src/modules/chapter/services/Chapters.ts index 3e11d0a2..ff4c0a5a 100644 --- a/src/modules/chapter/services/Chapters.ts +++ b/src/modules/chapter/services/Chapters.ts @@ -447,6 +447,6 @@ export class Chapters { const higherChapterNumber = Math.max(chapterA.chapterNumber, chapterB.chapterNumber); const lowerChapterNumber = Math.min(chapterA.chapterNumber, chapterB.chapterNumber); - return higherChapterNumber - lowerChapterNumber - 1; + return Math.floor(higherChapterNumber) - Math.floor(lowerChapterNumber) - 1; } }