summaryrefslogtreecommitdiffhomepage
path: root/cloud/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/app/src')
-rw-r--r--cloud/app/src/context/auth.tsx5
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",
})
}