diff --git a/src/state/StandaloneClientSession.ts b/src/state/StandaloneClientSession.ts index f860f6f45..1ec845d84 100644 --- a/src/state/StandaloneClientSession.ts +++ b/src/state/StandaloneClientSession.ts @@ -110,7 +110,10 @@ export function createStandaloneClientSession$( }, logout: async (): Promise => { const current = client(); - if (!current) return; + if (!current) { + logger.warn("[StandaloneClientSession] Calling logout but with no curent client.") + return + }; await current.logout(true); await current.clearStores();