diff options
| author | Fuwn <[email protected]> | 2023-09-01 00:15:24 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-01 00:15:24 -0700 |
| commit | d5561d8dc63b12bfa7f29afd09fa876f3079da9e (patch) | |
| tree | 2bf7636f24fb38ef44ffdd074c6ede9c1eeb6aeb /src/lib/List/Due/AnimeList.svelte | |
| parent | ci(docker): only copy build (diff) | |
| download | due.moe-d5561d8dc63b12bfa7f29afd09fa876f3079da9e.tar.xz due.moe-d5561d8dc63b12bfa7f29afd09fa876f3079da9e.zip | |
fix: lints
Diffstat (limited to 'src/lib/List/Due/AnimeList.svelte')
| -rw-r--r-- | src/lib/List/Due/AnimeList.svelte | 2 |
1 files changed, 1 insertions, 1 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> |