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 | |
| parent | ci(docker): only copy build (diff) | |
| download | due.moe-d5561d8dc63b12bfa7f29afd09fa876f3079da9e.tar.xz due.moe-d5561d8dc63b12bfa7f29afd09fa876f3079da9e.zip | |
fix: lints
| -rw-r--r-- | src/app.html | 2 | ||||
| -rw-r--r-- | src/lib/AniList/media.ts | 2 | ||||
| -rw-r--r-- | src/lib/List/Due/AnimeList.svelte | 2 | ||||
| -rw-r--r-- | src/lib/List/Due/MangaList.svelte | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/app.html b/src/app.html index 6c1d6791..f281d226 100644 --- a/src/app.html +++ b/src/app.html @@ -22,7 +22,7 @@ %sveltekit.head% </head> - <body data-sveltekit-preload-data="hover" style="max-width: 90% !important;"> + <body data-sveltekit-preload-data="hover" style="max-width: 90% !important"> <div style="display: contents">%sveltekit.body%</div> </body> </html> diff --git a/src/lib/AniList/media.ts b/src/lib/AniList/media.ts index 3827feae..13871d6e 100644 --- a/src/lib/AniList/media.ts +++ b/src/lib/AniList/media.ts @@ -59,7 +59,7 @@ export const mediaListCollection = async ( type: Type, mediaCache: string | undefined, currentLastPruneAt: string | number, - forcePrune: boolean = false + forcePrune = false ) => { let currentCacheMinutes; 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> |