diff --git a/src/modules/reader/utils/Reader.utils.ts b/src/modules/reader/utils/Reader.utils.ts index b0084bfe..f20dcf07 100644 --- a/src/modules/reader/utils/Reader.utils.ts +++ b/src/modules/reader/utils/Reader.utils.ts @@ -278,11 +278,11 @@ export const getReaderChapterViewerCurrentPageIndex = ( return getInitialReaderPageIndex(visibleChapters.resumeMode, 0, chapter.pageCount - 1); } - if (isTrailingChapter) { + if (isLeadingChapter) { return Math.max(0, chapter.pageCount - 1); } - if (isLeadingChapter) { + if (isTrailingChapter) { return 0; } }