Stringify supported nips

This commit is contained in:
Jon Staab
2026-01-26 10:08:37 -08:00
parent 1c0204c17c
commit 1ce053b26f
6 changed files with 17 additions and 3 deletions
+6
View File
@@ -39,6 +39,12 @@ export const fetchRelay = async (url: string): Promise<Maybe<RelayProfile>> => {
if (json) {
const info = {...json, url}
if (!Array.isArray(info.supported_nips)) {
info.supported_nips = []
}
info.supported_nips = info.supported_nips.map(String)
relaysByUrl.update($relaysByUrl => {
$relaysByUrl.set(url, info)