summaryrefslogtreecommitdiffhomepage
path: root/cloud/app/src/context
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-09-02 18:00:48 -0400
committerDax Raad <[email protected]>2025-09-02 18:00:48 -0400
commit2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620 (patch)
treee69988fdd16d0b16533f6abca22765af148939c5 /cloud/app/src/context
parente544cccc70cc717d3780bb3ee8a046d8314cc3f2 (diff)
downloadopencode-2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620.tar.gz
opencode-2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620.zip
wip: zen
Diffstat (limited to 'cloud/app/src/context')
-rw-r--r--cloud/app/src/context/auth.ts4
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: {