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/AnimeList.svelte | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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

diff --git a/src/lib/List/Due/AnimeList.svelte b/src/lib/List/Due/AnimeList.svelte
index 9f38090b..0cfd5994 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -6,9 +6,8 @@
 	import { onDestroy, onMount } from 'svelte';
 	import anime from '../../../stores/anime';
 	import animeLastPrune from '../../../stores/mangaLastPrune';
-	import sortByDifference from '../../../stores/sortByDifference';
-	import displayNotStarted from '../../../stores/displayNotStarted';
 	import cacheMinutes from '../../../stores/cacheMinutes';
+	import settings from '../../../stores/settings';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -43,7 +42,7 @@
 			(media: Media) =>
 				media.status == 'RELEASING' &&
 				(media.mediaListEntry || { progress: 0 }).progress >=
-					($displayNotStarted === 'true' ? 0 : 1)
+					($settings.displayNotStarted === true ? 0 : 1)
 		);
 		const outdatedMedia = releasingMedia.filter((media: Media) => {
 			return (
@@ -64,7 +63,7 @@
 		}
 
 		finalMedia.sort((a: Media, b: Media) => {
-			if ($sortByDifference === 'true') {
+			if ($settings.sortByDifference === true) {
 				const difference = (anime: Media) => {
 					return (
 						(anime.nextAiringEpisode?.episode === -1
-- 
cgit v1.2.3

