Mark first chapter as read for "mark previous as read" (#435)
This commit is contained in:
@@ -69,7 +69,7 @@ export const ChapterCard: React.FC<IProps> = (props: IProps) => {
|
|||||||
|
|
||||||
if (key === 'markPrevRead') {
|
if (key === 'markPrevRead') {
|
||||||
const index = chapterIds.findIndex((chapterId) => chapterId === chapter.id);
|
const index = chapterIds.findIndex((chapterId) => chapterId === chapter.id);
|
||||||
requestManager.updateChapters(chapterIds.slice(index, -1), { isRead: true });
|
requestManager.updateChapters(chapterIds.slice(index), { isRead: true });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user