From 2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Tue, 2 Sep 2025 18:00:48 -0400 Subject: wip: zen --- cloud/app/src/context/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cloud/app/src/context') 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 => { 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: { -- cgit v1.2.3