Use first unread chapter for continue read buttons (#689)
This commit is contained in:
@@ -79,7 +79,7 @@ export const ChapterList: React.FC<IProps> = ({ manga, isRefreshing }) => {
|
||||
|
||||
const visibleChapters = useMemo(() => filterAndSortChapters(chapters, options), [chapters, options]);
|
||||
|
||||
const nextChapterIndexToRead = (manga.latestReadChapter?.sourceOrder ?? 0) + 1;
|
||||
const nextChapterIndexToRead = manga.firstUnreadChapter?.sourceOrder ?? 1;
|
||||
const isLatestChapterRead = manga.chapters.totalCount === manga.latestReadChapter?.sourceOrder;
|
||||
|
||||
const areAllChaptersRead = manga.unreadCount === 0;
|
||||
|
||||
Reference in New Issue
Block a user