From 00a37d80baff59b57fec2bd475ab7de531580199 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 3 Sep 2023 17:58:56 -0700
Subject: feat(stores): settings store for all settings

---
 src/lib/List/Due/MangaList.svelte | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/lib/List/Due/MangaList.svelte')

diff --git a/src/lib/List/Due/MangaList.svelte b/src/lib/List/Due/MangaList.svelte
index a7f8d208..43976e0d 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -7,10 +7,9 @@
 	import manga from '../../../stores/manga';
 	import { chapterDatabase } from '$lib/chapterDatabase';
 	import cacheMangaMinutes from '../../../stores/cacheMangaMinutes';
-	import roundDownChapters from '../../../stores/roundDownChapters';
 	import mangaLastPrune from '../../../stores/mangaLastPrune';
-	import displayNotStarted from '../../../stores/displayNotStarted';
 	import cacheMinutes from '../../../stores/cacheMinutes';
+	import settings from '../../../stores/settings';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -64,7 +63,7 @@
 				media.status == 'RELEASING' &&
 				media.format != 'NOVEL' &&
 				(media.mediaListEntry || { progress: 0 }).progress >=
-					($displayNotStarted === 'true' ? 0 : 1)
+					($settings.displayNotStarted === true ? 0 : 1)
 		);
 		let finalMedia = releasingMedia;
 
@@ -95,7 +94,7 @@
 				(item.episodes === -1337 && displayUnresolved
 					? true
 					: (item.mediaListEntry?.progress || 0) <
-					  ($roundDownChapters === 'true' ? Math.floor(item.episodes) : item.episodes))
+					  ($settings.roundDownChapters === true ? Math.floor(item.episodes) : item.episodes))
 			);
 		});
 
-- 
cgit v1.2.3

