diff options
| author | Dax Raad <[email protected]> | 2025-09-02 18:00:48 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-02 18:00:48 -0400 |
| commit | 2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620 (patch) | |
| tree | e69988fdd16d0b16533f6abca22765af148939c5 /cloud/app/src/context | |
| parent | e544cccc70cc717d3780bb3ee8a046d8314cc3f2 (diff) | |
| download | opencode-2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620.tar.gz opencode-2e16d685eb5b37e022e7cbd6d4f1ea6cc05f9620.zip | |
wip: zen
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: { |
