From 90ee7a46b680f9649faa1f7dbc64a14ffcdda546 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 31 Jan 2024 02:21:53 -0800
Subject: fix(routes): load lists after identity loaded

---
 src/routes/+page.svelte | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/routes/+page.svelte')

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 16ca4e9b..f3b81ebe 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -40,7 +40,7 @@
 	>
 		{#if !$settings.disableUpcomingAnime}
 			<details open={!$settings.displayUpcomingAnimeCollapsed} class="list">
-				{#if $userIdentity.id != -1}
+				{#if $userIdentity.id !== -2}
 					<UpcomingAnimeList user={data.user} />
 				{:else}
 					<ListTitle title={$locale().lists.upcoming.episodes} />
@@ -56,7 +56,7 @@
 
 		{#if !$settings.disableAnime}
 			<details open={!$settings.displayAnimeCollapsed} class="list">
-				{#if $userIdentity.id != -1}
+				{#if $userIdentity.id !== -2}
 					<AnimeList user={data.user} />
 				{:else}
 					<ListTitle title={$locale().lists.due.episodes} />
@@ -72,7 +72,7 @@
 
 		{#if !$settings.disableManga}
 			<details open={!$settings.displayMangaCollapsed} class="list">
-				{#if $userIdentity.id != -1}
+				{#if $userIdentity.id !== -2}
 					<MangaListTemplate
 						user={data.user}
 						displayUnresolved={$settings.displayUnresolved}
-- 
cgit v1.2.3

