Mark first chapter as read for "mark previous as read" (#435)

This commit is contained in:
schroda
2023-10-29 13:32:47 +01:00
committed by GitHub
parent 4c6e9a8aa1
commit 529fcf2d25

View File

@@ -69,7 +69,7 @@ export const ChapterCard: React.FC<IProps> = (props: IProps) => {
if (key === 'markPrevRead') {
const index = chapterIds.findIndex((chapterId) => chapterId === chapter.id);
requestManager.updateChapters(chapterIds.slice(index, -1), { isRead: true });
requestManager.updateChapters(chapterIds.slice(index), { isRead: true });
return;
}