fix: 🐛
This commit is contained in:
parent
2a842ff246
commit
4cbd35ce7a
1 changed files with 4 additions and 1 deletions
|
|
@ -81,7 +81,10 @@ export function FavoriteRelaysProvider({ children }: { children: React.ReactNode
|
||||||
|
|
||||||
setFavoriteRelays(relays)
|
setFavoriteRelays(relays)
|
||||||
|
|
||||||
if (!pubkey) return
|
if (!pubkey || !relaySetIds.length) {
|
||||||
|
setRelaySets([])
|
||||||
|
return
|
||||||
|
}
|
||||||
const storedRelaySetEvents = await Promise.all(
|
const storedRelaySetEvents = await Promise.all(
|
||||||
relaySetIds.map((id) => indexedDb.getReplaceableEvent(pubkey, kinds.Relaysets, id))
|
relaySetIds.map((id) => indexedDb.getReplaceableEvent(pubkey, kinds.Relaysets, id))
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue