mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-05 16:02:19 +00:00
ignore: cloud
This commit is contained in:
parent
a928a35c96
commit
02e014b0a0
2 changed files with 4 additions and 6 deletions
|
|
@ -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",
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue