Fix empty favorited by circles
This commit is contained in:
parent
e52cbcc23b
commit
1ef1c22007
1 changed files with 3 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
|||
const {url, hideFavorites}: Props = $props()
|
||||
const rooms = deriveUserRooms(url)
|
||||
const favorited = deriveGroupListPubkeys(url)
|
||||
const favoritedPubkeys = $derived(remove($pubkey!, Array.from($favorited)))
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col gap-4 text-left">
|
||||
|
|
@ -46,10 +47,10 @@
|
|||
<RelayDescription {url} />
|
||||
</div>
|
||||
</div>
|
||||
{#if !hideFavorites && $favorited.size > 0}
|
||||
{#if !hideFavorites && favoritedPubkeys.length > 0}
|
||||
<div class="flex gap-2 card card-sm">
|
||||
Favorited By:
|
||||
<ProfileCircles pubkeys={remove($pubkey!, Array.from($favorited))} />
|
||||
<ProfileCircles pubkeys={favoritedPubkeys} />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue