From 27dc31958bab49093cf705c14929700e3e1d85a6 Mon Sep 17 00:00:00 2001 From: Fuwn 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}
- Days Active: {activities.length}/{useFullActivityHistory ? 365 : 189} + Days Active: {#if currentYear !== new Date(Date.now()).getFullYear()} + ?/365 + {:else} + {activities.length}/{useFullActivityHistory ? 365 : 189} + {/if}
@@ -602,7 +606,7 @@ {/each} {:else}
  • -

    (⌣_⌣”)

    +

    (⌣_⌣”)

  • {/if} @@ -645,7 +649,7 @@ {/each} {:else}
  • -

    (⌣_⌣”)

    +

    (⌣_⌣”)

  • {/if} -- cgit v1.2.3