diff options
| author | Dax Raad <[email protected]> | 2025-08-28 14:09:34 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-08-28 14:09:51 -0400 |
| commit | 02e014b0a0e2917380aca8efedba1439708f1933 (patch) | |
| tree | e9c787ef24f851ea7d795f0e670771ae4bc09a3a /cloud/app/src | |
| parent | a928a35c96773c6a28b7b836754474ab099471a9 (diff) | |
| download | opencode-02e014b0a0e2917380aca8efedba1439708f1933.tar.gz opencode-02e014b0a0e2917380aca8efedba1439708f1933.zip | |
ignore: cloud
Diffstat (limited to 'cloud/app/src')
| -rw-r--r-- | cloud/app/src/context/auth.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cloud/app/src/context/auth.tsx b/cloud/app/src/context/auth.tsx index 88d3214c1..d6c5887c8 100644 --- a/cloud/app/src/context/auth.tsx +++ b/cloud/app/src/context/auth.tsx @@ -32,7 +32,7 @@ export const getActor = query(async (): Promise<Actor.Info> => { }, } } - if (Object.keys(auth.data.account).length > 0) { + if (Object.keys(auth.data.account ?? {}).length > 0) { const current = Object.values(auth.data.account)[0] await auth.update(val => ({ ...val, @@ -96,10 +96,9 @@ export interface AuthSession { } export function useAuthSession() { - return useSession<AuthSession>({ password: "0".repeat(32), - name: "auth" + name: "auth", }) } |
