From d5561d8dc63b12bfa7f29afd09fa876f3079da9e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 1 Sep 2023 00:15:24 -0700
Subject: fix: lints

---
 src/lib/List/Due/AnimeList.svelte | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(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 4257c922..575a2ff6 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -123,7 +123,7 @@
 	const updateMedia = async (id: number, progress: number | undefined) => {
 		animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $animeLastPrune, true);
 
-		await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`);
+		await fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`);
 	};
 </script>
 
-- 
cgit v1.2.3

