Merge branch 'nostr-relays' into 'main'
edit relays: fix useEffect See merge request soapbox-pub/soapbox!2974
This commit is contained in:
commit
03e02a3d4f
|
@ -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<void> => {
|
||||
if (!signer || !relay) return;
|
||||
|
|
Loading…
Reference in New Issue