diff options
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/player/[player]/[profile].svelte | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/routes/player/[player]/[profile].svelte b/src/routes/player/[player]/[profile].svelte index 848bfb4..6a720ce 100644 --- a/src/routes/player/[player]/[profile].svelte +++ b/src/routes/player/[player]/[profile].svelte @@ -50,6 +50,7 @@ import Toc from '$lib/Toc.svelte' import Harp from '$lib/sections/Harp.svelte' import Claimed from '$lib/sections/Claimed.svelte' + import Pets from '$lib/sections/Pets.svelte' export let data: CleanMemberProfile export let pack: MatcherFile @@ -71,6 +72,7 @@ if (data.profile.bank.balance !== undefined) categories.push('bank') if (data.member.harp.selected !== null) categories.push('harp') if (data.member.claimed && data.member.claimed.length > 0) categories.push('claimed') + if (data.member.pets.list.length > 0) categories.push('pets') categories.push('leaderboards') } @@ -218,6 +220,14 @@ </Collapsible> </section> {/if} + {#if categories.includes('pets')} + <section> + <Collapsible id="pets"> + <h2 slot="title">Pets</h2> + <Pets {data} /> + </Collapsible> + </section> + {/if} <section> <Collapsible id="leaderboards"> <h2 slot="title">Leaderboards</h2> |
