diff options
| author | Fuwn <[email protected]> | 2024-11-18 19:09:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-11-18 19:09:51 -0800 |
| commit | 5097465c65f10d5fc1109263e2cc418c6854f2e0 (patch) | |
| tree | 360779e3b5fedcfe9351bed7091ec12dbdcd67a9 /src/lib/List | |
| parent | fix(CleanAnimeList): total chapter count calculation (diff) | |
| download | due.moe-5097465c65f10d5fc1109263e2cc418c6854f2e0.tar.xz due.moe-5097465c65f10d5fc1109263e2cc418c6854f2e0.zip | |
fix(CleanMangaList): total chapter count calculation
Diffstat (limited to 'src/lib/List')
| -rw-r--r-- | src/lib/List/Manga/CleanMangaList.svelte | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte index cbe2bd9f..73005d73 100644 --- a/src/lib/List/Manga/CleanMangaList.svelte +++ b/src/lib/List/Manga/CleanMangaList.svelte @@ -31,11 +31,7 @@ let serviceStatusResponse: Promise<Response>; let totalEpisodeDueCount = media - .map((manga) => { - if (manga.mediaListEntry?.status === 'COMPLETED') return 0; - - return (manga.mediaListEntry?.progress || 0) - 1; - }) + .map((manga) => (manga.episodes || 1) - (manga.mediaListEntry?.progress || 0)) .reduce((a, b) => a + b, 0); onMount(() => { |