From 1067a2844ed42d836b5f0b271e1978c49889eb97 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 19 Sep 2023 17:10:59 -0700
Subject: fix(due): move timer back

---
 src/lib/List/Due/AnimeList.svelte | 7 ++-----
 1 file changed, 2 insertions(+), 5 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 bd3fe0cf..a1792290 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -31,20 +31,17 @@
 	}, $settings.cacheMinutes * 1000 * 60);
 
 	onMount(async () => {
+		startTime = performance.now();
 		animeLists = mediaListCollection(user, identity, Type.Anime, $anime, $lastPruneTimes.anime);
 	});
 
-	onDestroy(() => {
-		clearInterval(keyCacher);
-	});
+	onDestroy(() => clearInterval(keyCacher));
 
 	const cleanMedia = (media: Media[], displayUnresolved: boolean) => {
 		if (media === undefined) {
 			return [];
 		}
 
-		startTime = performance.now();
-
 		const releasingMedia = media.filter(
 			(media: Media) =>
 				media.status == 'RELEASING' &&
-- 
cgit v1.2.3

