diff options
| author | Fuwn <[email protected]> | 2024-01-01 01:06:55 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-01 01:06:55 -0800 |
| commit | 27dc31958bab49093cf705c14929700e3e1d85a6 (patch) | |
| tree | 90cfa8f77b7e5dcd63cfb93caaf842013ebfddda /src/lib/Tools | |
| parent | fix(wrapped): defaults for no activity (diff) | |
| download | due.moe-27dc31958bab49093cf705c14929700e3e1d85a6.tar.xz due.moe-27dc31958bab49093cf705c14929700e3e1d85a6.zip | |
fix(wrapped): fix for next year
Diffstat (limited to 'src/lib/Tools')
| -rw-r--r-- | src/lib/Tools/Wrapped.svelte | 12 |
1 files changed, 8 insertions, 4 deletions
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> |