diff options
Diffstat (limited to 'cloud/app/src/context')
| -rw-r--r-- | cloud/app/src/context/auth.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloud/app/src/context/auth.ts b/cloud/app/src/context/auth.ts index e04ccdb05..5cf366ca4 100644 --- a/cloud/app/src/context/auth.ts +++ b/cloud/app/src/context/auth.ts @@ -22,8 +22,8 @@ export const getActor = async (): Promise<Actor.Info> => { const auth = await useAuthSession() const splits = url.pathname.split("/").filter(Boolean) if (splits[0] !== "workspace") { - if (auth.data.current) { - const current = auth.data.account[auth.data.current] + const current = auth.data.account[auth.data.current ?? ""] + if (current) { return { type: "account", properties: { |
