From 64b701d4eac606afe447114cd2f810cb14541cbe Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 1 Sep 2023 00:25:28 -0700
Subject: fix: null defaults

---
 src/lib/List/Due/MangaList.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 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 0fd0cdfe..dc2be35b 100644
--- a/src/lib/List/Due/MangaList.svelte
+++ b/src/lib/List/Due/MangaList.svelte
@@ -71,8 +71,8 @@
 		finalMedia.sort((a: Media, b: Media) => {
 			return (
 				(a.episodes || 9999) -
-				a.mediaListEntry!.progress -
-				((b.episodes || 9999) - b.mediaListEntry!.progress)
+				(a.mediaListEntry || { progress: 0 }).progress -
+				((b.episodes || 9999) - (b.mediaListEntry || { progress: 0 }).progress)
 			);
 		});
 
-- 
cgit v1.2.3

