Refine outbox loader

This commit is contained in:
Jon Staab
2026-01-16 12:32:13 -08:00
parent 7a3af853c5
commit 79a5c0104e
2 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ export const updateSession = (pubkey: string, f: (session: Session) => Session)
putSession(f(getSession(pubkey)))
export const dropSession = (_pubkey: string) => {
getSigner.pop(getSession(_pubkey))?.cleanup()
getSigner.pop(getSession(_pubkey))?.cleanup?.()
pubkey.update($pubkey => ($pubkey === _pubkey ? undefined : $pubkey))
sessions.update($sessions => omit([_pubkey], $sessions))
}