Avoid `using` syntax

This commit is contained in:
Alex Gleason 2024-11-10 01:15:14 -06:00
parent 1cbebd0dc2
commit c6a3c19611
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -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();
};
}