From 28275a302d4c62cf5f79e92eaa890d0d6dd71deb Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 27 Aug 2023 00:58:14 -0700
Subject: fix(list): proper timer

---
 src/lib/List/Due/AnimeList.svelte | 3 +--
 1 file changed, 1 insertion(+), 2 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 dd19bada..45b5eb11 100644
--- a/src/lib/List/Due/AnimeList.svelte
+++ b/src/lib/List/Due/AnimeList.svelte
@@ -12,12 +12,11 @@
 	let endTime: number;
 
 	onMount(async () => {
+		startTime = performance.now();
 		animeLists = mediaListCollection(user, identity, Type.Anime);
 	});
 
 	const cleanMedia = (media: object[][], displayUnresolved: boolean) => {
-		startTime = performance.now();
-
 		const flattenedLists = flattenLists(media);
 		const releasingMedia = flattenedLists.filter((media: Media) => media['status'] == 'RELEASING');
 		const outdatedMedia = releasingMedia.filter((media: Media) => {
-- 
cgit v1.2.3

