From 0b957291eb52a31c5b96ec92dab5bbb64125291a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 1 Sep 2023 00:08:40 -0700
Subject: fix(due): better increment follow-up

---
 src/lib/List/Due/MangaList.svelte | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/lib/List/Due/MangaList.svelte')

diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index e6d82547..57b6a5b1 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -93,12 +93,11 @@
 	};
 
 	const updateMedia = async (id: number, progress: number | undefined) => {
-		manga.set('');
-		chapterDatabase.chapters.delete(id).then(async () => {
-			mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune);
+		await chapterDatabase.chapters.delete(id);
 
-			await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`);
-		});
+		mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune, true);
+
+		await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`);
 	};
 </script>
 
-- 
cgit v1.2.3

