diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/List/Due/MangaList.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte index 91524bdc..113d4017 100644 --- a/src/lib/List/Due/MangaList.svelte +++ b/src/lib/List/Due/MangaList.svelte @@ -7,6 +7,7 @@ import manga from '../../../stores/manga'; import { chapterDatabase } from '$lib/chapterDatabase'; import cacheMangaMinutes from '../../../stores/cacheMangaMinutes'; + import roundDownChapters from '../../../stores/roundDownChapters'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -34,7 +35,6 @@ Number($cacheMangaMinutes) ) { const unresolved = await chapterDatabase.chapters.where('chapters').equals(-1).toArray(); - const ids = unresolved.map((m) => m.id); chaptersLastPrune.set(new Date().getTime().toString()); @@ -77,7 +77,8 @@ }) === index && (item.episodes === null && displayUnresolved ? true - : (item.mediaListEntry?.progress || 0) < item.episodes) + : (item.mediaListEntry?.progress || 0) < + ($roundDownChapters === 'true' ? Math.floor(item.episodes) : item.episodes)) ); }); endTime = performance.now() - startTime; |