diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Avatar.svelte | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/Avatar.svelte b/src/components/Avatar.svelte index 5b5ce713..f37f3e14 100644 --- a/src/components/Avatar.svelte +++ b/src/components/Avatar.svelte @@ -18,9 +18,9 @@ user?.profile ? `${base}/${user.profile}.webp` : user?.picture, ); let fallback = $derived( - `${base}/punks/` + punk(user.pubkey || user.id || "aa"), + `${base}/punks/` + punk(user.pubkey || user?.id || "aa"), ); - let tmp = $derived($avatar?.id && $avatar.id === user.id && $avatar.src); + let tmp = $derived($avatar?.id && $avatar.id === user?.id && $avatar.src); let src = $derived(tmp || profile || fallback); </script> |
