From e5837ebefbd7bf9bfb070e2000bf4b93df07e422 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 13 May 2023 21:25:59 -0500 Subject: [PATCH] nip07: catch signEvent error --- app/soapbox/actions/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/actions/streaming.ts b/app/soapbox/actions/streaming.ts index b42ebfd78..a0dddda83 100644 --- a/app/soapbox/actions/streaming.ts +++ b/app/soapbox/actions/streaming.ts @@ -183,7 +183,7 @@ const connectTimelineStream = ( break; case 'nostr.sign': (async () => { - const event = await window.nostr?.signEvent(JSON.parse(data.payload)); + const event = await window.nostr?.signEvent(JSON.parse(data.payload)).catch(() => undefined); if (event) { websocket.send(JSON.stringify({ event: 'nostr.sign', payload: JSON.stringify(event) }));