From a782973be8f17ff26b44f592906e618f02c56aa9 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 1 Feb 2024 00:25:37 -0800
Subject: fix(wrapped): require login

---
 src/lib/Tools/Wrapped/Tool.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/Tools/Wrapped/Tool.svelte')

diff --git a/src/lib/Tools/Wrapped/Tool.svelte b/src/lib/Tools/Wrapped/Tool.svelte
index 57d1d189..20fae810 100644
--- a/src/lib/Tools/Wrapped/Tool.svelte
+++ b/src/lib/Tools/Wrapped/Tool.svelte
@@ -562,8 +562,8 @@
 	// };
 </script>
 
-{#if $userIdentity.id === undefined}
-	<div class="card">Please log in to view this page.</div>
+{#if $userIdentity.id === -2 || user === undefined}
+	<div class="popup card">Please log in to view this page.</div>
 {:else if $userIdentity.id !== -1}
 	{#await selectedYear !== currentYear || useFullActivityHistory || new Date().getMonth() <= 6 ? fullActivityHistory(user, $userIdentity, selectedYear) : getActivityHistory($userIdentity)}
 		<Message message="Loading activity history ..." />
-- 
cgit v1.2.3

