From 478da07bf7fa6eab587650e487ed34cc220017f4 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 28 Aug 2023 01:39:25 -0700
Subject: feat(settings): toggle zero progress media

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

(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 5d605276..e2c0ad05 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -9,6 +9,7 @@
 	import cacheMangaMinutes from '../../../stores/cacheMangaMinutes';
 	import roundDownChapters from '../../../stores/roundDownChapters';
 	import mangaLastPrune from '../../../stores/mangaLastPrune';
+	import displayNotStarted from '../../../stores/displayNotStarted';
 
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
@@ -48,7 +49,8 @@
 			(media: Media) =>
 				media['status'] == 'RELEASING' &&
 				media['format'] != 'NOVEL' &&
-				(media['mediaListEntry'] || { progress: 0 })['progress'] >= 1
+				(media['mediaListEntry'] || { progress: 0 })['progress'] >=
+					($displayNotStarted === 'true' ? 0 : 1)
 		);
 		let finalMedia = releasingMedia;
 
-- 
cgit v1.2.3

