mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 10:57:04 +00:00
Handle broken supported_nips
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
>{displayUrl($relay.profile.contact)}</Link>
|
||||
•
|
||||
{/if}
|
||||
{#if $relay?.profile?.supported_nips}
|
||||
{#if Array.isArray($relay?.profile?.supported_nips)}
|
||||
<span
|
||||
class="tooltip cursor-pointer underline"
|
||||
data-tip="NIPs supported: {$relay.profile.supported_nips.join(', ')}">
|
||||
|
||||
@@ -485,7 +485,7 @@ export const messages = derived(
|
||||
export const groupMeta = deriveEvents(repository, {filters: [{kinds: [GROUP_META]}]})
|
||||
|
||||
export const hasNip29 = (relay?: Relay) =>
|
||||
relay?.profile?.supported_nips?.map(String)?.includes("29")
|
||||
relay?.profile?.supported_nips?.map?.(String)?.includes?.("29")
|
||||
|
||||
// Channels
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<span class="ellipsize">Requires PoW {limitation?.min_pow_difficulty}</span>
|
||||
</p>
|
||||
{/if}
|
||||
{#if supported_nips}
|
||||
{#if Array.isArray(supported_nips)}
|
||||
<p class="badge badge-neutral">
|
||||
<span class="ellipsize">NIPs: {supported_nips.join(", ")}</span>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user