feat: reuse existing bunker connection on account switch (#401)
This commit is contained in:
parent
4e80d59c1c
commit
f66ca6346f
2 changed files with 5 additions and 3 deletions
|
|
@ -450,7 +450,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
|
|||
} else if (account.signerType === 'bunker') {
|
||||
if (account.bunker && account.bunkerClientSecretKey) {
|
||||
const bunkerSigner = new BunkerSigner(account.bunkerClientSecretKey)
|
||||
const pubkey = await bunkerSigner.login(account.bunker)
|
||||
const pubkey = await bunkerSigner.login(account.bunker, false)
|
||||
if (!pubkey) {
|
||||
storage.removeAccount(account)
|
||||
return null
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue