Clean up deriveProfile call in ProfileCircle
This commit is contained in:
@@ -14,11 +14,11 @@
|
|||||||
|
|
||||||
const {pubkey, url, size = 7, ...props}: Props = $props()
|
const {pubkey, url, size = 7, ...props}: Props = $props()
|
||||||
|
|
||||||
const profile = pubkey ? deriveProfile(pubkey, removeUndefined([url])) : undefined
|
const profile = deriveProfile(pubkey, removeUndefined([url]))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<ImageIcon
|
<ImageIcon
|
||||||
{size}
|
{size}
|
||||||
alt=""
|
alt=""
|
||||||
class={cx(props.class, "rounded-full")}
|
class={cx(props.class, "rounded-full")}
|
||||||
src={(profile ? $profile?.picture : undefined) || UserRounded} />
|
src={$profile?.picture || UserRounded} />
|
||||||
|
|||||||
Reference in New Issue
Block a user