From c6a3c19611fdf89649886376a2a281b803f294cb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 10 Nov 2024 01:15:14 -0600 Subject: [PATCH] Avoid `using` syntax --- src/actions/nostr.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/actions/nostr.ts b/src/actions/nostr.ts index c6d7c944d..87f13f238 100644 --- a/src/actions/nostr.ts +++ b/src/actions/nostr.ts @@ -21,7 +21,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { let authorizedPubkey: string | undefined; - using bunker = new NBunker({ + const bunker = new NBunker({ relay, userSigner: signer, bunkerSigner: authorization.signer, @@ -64,6 +64,7 @@ function logInNostr(signer: NostrSigner, relay: NRelay1) { }); await dispatch(verifyCredentials(accessToken)); + bunker.close(); }; }