From 5560f4c8ae599997941a1ed1fb94034dccc420f8 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 27 Aug 2023 18:55:31 -0700
Subject: fix(list): update ui on increment

---
 src/lib/List/Due/AnimeList.svelte | 3 +++
 1 file changed, 3 insertions(+)

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

diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index 8527ed43..a9f347a9 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -106,6 +106,9 @@
 	};
 
 	const updateMedia = async (id: number, progress: number | undefined) => {
+		anime.set('');
+		animeLastPrune.set('1');
+
 		animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $animeLastPrune);
 
 		await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`);
-- 
cgit v1.2.3

