diff options
| author | Adam Soltys <[email protected]> | 2023-01-28 00:19:50 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-28 00:19:50 -0800 |
| commit | 5cb85179f40c8f1aa90f8da190526fcf5449efc1 (patch) | |
| tree | 1b9c2361cfb7ca116efbbcef368aa4fa3320a90c /src/components/Avatar.svelte | |
| parent | 84815786d3aee1b2487f3cc8fb88d4e3f30e4ecb (diff) | |
| download | coinos-ui-5cb85179f40c8f1aa90f8da190526fcf5449efc1.tar.gz coinos-ui-5cb85179f40c8f1aa90f8da190526fcf5449efc1.zip | |
avatar bug
Diffstat (limited to 'src/components/Avatar.svelte')
| -rw-r--r-- | src/components/Avatar.svelte | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/Avatar.svelte b/src/components/Avatar.svelte index 43331c19..ac2dfdda 100644 --- a/src/components/Avatar.svelte +++ b/src/components/Avatar.svelte @@ -10,9 +10,10 @@ $: s = size.toString(); $: link = user.anon ? `/${user.pubkey}` : `/${user.username}`; - $: src = ($avatar?.id === user.id && $avatar.src) || + $: src = + ($avatar?.id && $avatar.id === user.id && $avatar.src) || '/api/public/' + - (user.profile ? user.id + '-profile.webp' : 'punks/' + punk(user.pubkey || user.id || 'aa')); + (user.profile ? user.id + '-profile.webp' : 'punks/' + punk(user.pubkey || user.id || 'aa')); </script> <a href={link} class:pointer-events-none={disabled}> |
