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 {url, hideFavorites}: Props = $props()
|
||||||
const rooms = deriveUserRooms(url)
|
const rooms = deriveUserRooms(url)
|
||||||
const favorited = deriveGroupListPubkeys(url)
|
const favorited = deriveGroupListPubkeys(url)
|
||||||
|
const favoritedPubkeys = $derived(remove($pubkey!, Array.from($favorited)))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col gap-4 text-left">
|
<div class="flex flex-col gap-4 text-left">
|
||||||
|
|
@ -46,10 +47,10 @@
|
||||||
<RelayDescription {url} />
|
<RelayDescription {url} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{#if !hideFavorites && $favorited.size > 0}
|
{#if !hideFavorites && favoritedPubkeys.length > 0}
|
||||||
<div class="flex gap-2 card card-sm">
|
<div class="flex gap-2 card card-sm">
|
||||||
Favorited By:
|
Favorited By:
|
||||||
<ProfileCircles pubkeys={remove($pubkey!, Array.from($favorited))} />
|
<ProfileCircles pubkeys={favoritedPubkeys} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue