diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/List/WatchingAnimeList.svelte | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/List/WatchingAnimeList.svelte b/src/lib/List/WatchingAnimeList.svelte index f398d78f..f22d80df 100644 --- a/src/lib/List/WatchingAnimeList.svelte +++ b/src/lib/List/WatchingAnimeList.svelte @@ -7,6 +7,7 @@ import anime from '../../stores/anime'; import lastPruneTimes from '../../stores/lastPruneTimes'; import settings from '../../stores/settings'; + import { totalEpisodes } from '$lib/anime'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -59,10 +60,6 @@ return finalMedia; }; - const totalEpisodes = (anime: Media) => { - return anime.episodes === null ? '' : `<span style="opacity: 50%">/${anime.episodes}</span>`; - }; - const updateMedia = async (id: number, progress: number | undefined) => { fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(() => { animeLists = mediaListCollection( |