aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List/Due
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/List/Due')
-rw-r--r--src/lib/List/Due/AnimeList.svelte2
-rw-r--r--src/lib/List/Due/MangaList.svelte2
2 files changed, 2 insertions, 2 deletions
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>
diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index 57b6a5b1..f96c94d6 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -97,7 +97,7 @@
mangaLists = mediaListCollection(user, identity, Type.Manga, $manga, $mangaLastPrune, true);
- await fetch(`/anilist/increment?id=${id}&progress=${progress! + 1}`);
+ await fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`);
};
</script>