aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-11-18 19:09:51 -0800
committerFuwn <[email protected]>2024-11-18 19:09:51 -0800
commit5097465c65f10d5fc1109263e2cc418c6854f2e0 (patch)
tree360779e3b5fedcfe9351bed7091ec12dbdcd67a9 /src/lib/List
parentfix(CleanAnimeList): total chapter count calculation (diff)
downloaddue.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.svelte6
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(() => {