From 529fcf2d258c5fda99c777575c900336b2d9c357 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Sun, 29 Oct 2023 13:32:47 +0100 Subject: [PATCH] Mark first chapter as read for "mark previous as read" (#435) --- src/components/manga/ChapterCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/manga/ChapterCard.tsx b/src/components/manga/ChapterCard.tsx index ffc61ebf..a1f6aeaa 100644 --- a/src/components/manga/ChapterCard.tsx +++ b/src/components/manga/ChapterCard.tsx @@ -69,7 +69,7 @@ export const ChapterCard: React.FC = (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; }