fix: 🐛

This commit is contained in:
codytseng
2024-11-12 10:14:02 +08:00
parent 10bfeb23ad
commit 21e4e3badf
2 changed files with 6 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ export function useFetchRelayList(pubkey?: string | null) {
}
fetchRelayList()
}, [])
}, [pubkey])
return relayList
}

View File

@@ -126,7 +126,11 @@ class ClientService {
}
deleteEventCacheByFilter(filter: Filter) {
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
try {
this.eventCache.delete(JSON.stringify({ ...filter, limit: 1 }))
} catch {
// ignore
}
}
async fetchEventById(id: string): Promise<NEvent | undefined> {