aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/minecraft/Username.svelte10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/minecraft/Username.svelte b/src/lib/minecraft/Username.svelte
index f6f9911..f083723 100644
--- a/src/lib/minecraft/Username.svelte
+++ b/src/lib/minecraft/Username.svelte
@@ -16,9 +16,13 @@
</script>
<ConditionalLink
- href="/player/{typeof hyperlinkToProfile === 'string'
- ? `${player.username}/${hyperlinkToProfile}`
- : player.username}"
+ href="/player/{player.username
+ ? typeof hyperlinkToProfile === 'string'
+ ? `${player.username}/${hyperlinkToProfile}`
+ : player.username
+ : typeof hyperlinkToProfile === 'string'
+ ? `${player.uuid}/${hyperlinkToProfile}`
+ : player.uuid}"
isWrapped={!!hyperlinkToProfile}
>
{#if headType == '3d'}