From a17128c268439da0f44c39f057c4b26c584e567f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 2 Apr 2024 14:41:59 -0500 Subject: [PATCH] edit relays: fix useEffect --- src/features/nostr-relays/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/nostr-relays/index.tsx b/src/features/nostr-relays/index.tsx index e92f2dabe..e3842f2dc 100644 --- a/src/features/nostr-relays/index.tsx +++ b/src/features/nostr-relays/index.tsx @@ -30,7 +30,7 @@ const NostrRelays = () => { const tags = events[0]?.tags ?? []; const data = tags.map(tag => ({ url: tag[1], marker: tag[2] as 'read' | 'write' | undefined })); setRelays(data); - }, [events]); + }, [events[0]]); const handleSubmit = async (): Promise => { if (!signer || !relay) return;