From 27dc31958bab49093cf705c14929700e3e1d85a6 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 1 Jan 2024 01:06:55 -0800
Subject: fix(wrapped): fix for next year

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

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

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index 8f29b668..a7bbdccf 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -482,7 +482,7 @@
 {#if currentUserIdentity.id === -2}
 	Please log in to view this page.
 {:else if currentUserIdentity.id !== -1}
-	{#await currentYear !== new Date(Date.now()).getFullYear() || useFullActivityHistory ? fullActivityHistory(user, currentUserIdentity, currentYear) : getActivityHistory(currentUserIdentity)}
+	{#await currentYear !== new Date(Date.now()).getFullYear() || useFullActivityHistory || new Date().getMonth() <= 6 ? fullActivityHistory(user, currentUserIdentity, currentYear) : getActivityHistory(currentUserIdentity)}
 		{@html nbsp(`Loading${useFullActivityHistory ? ' full-year' : ''} activity history ...`)}
 	{:then activities}
 		{#await wrapped(user, currentUserIdentity, currentYear)}
@@ -524,7 +524,11 @@
 									Messages: {wrapped.activities.messageCount}
 								</div>
 								<div>
-									Days Active: {activities.length}/{useFullActivityHistory ? 365 : 189}
+									Days Active: {#if currentYear !== new Date(Date.now()).getFullYear()}
+										?/365
+									{:else}
+										{activities.length}/{useFullActivityHistory ? 365 : 189}
+									{/if}
 								</div>
 							</div>
 						</div>
@@ -602,7 +606,7 @@
 												{/each}
 											{:else}
 												<li>
-													<p>(⌣_⌣”)</p>
+													<p style="opacity: 50%;">(⌣_⌣”)</p>
 												</li>
 											{/if}
 										</ol>
@@ -645,7 +649,7 @@
 												{/each}
 											{:else}
 												<li>
-													<p>(⌣_⌣”)</p>
+													<p style="opacity: 50%;">(⌣_⌣”)</p>
 												</li>
 											{/if}
 										</ol>
-- 
cgit v1.2.3

