fix: 🐛

This commit is contained in:
codytseng
2025-06-14 11:32:35 +08:00
parent c09c002471
commit 5f2f63696b
3 changed files with 21 additions and 9 deletions

View File

@@ -172,9 +172,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
indexedDb.getReplaceableEvent(account.pubkey, ExtendedKind.FAVORITE_RELAYS)
])
if (storedRelayListEvent) {
setRelayList(
storedRelayListEvent ? getRelayListFromRelayListEvent(storedRelayListEvent) : null
)
setRelayList(getRelayListFromRelayListEvent(storedRelayListEvent))
}
if (storedProfileEvent) {
setProfileEvent(storedProfileEvent)