ignore: cloud

This commit is contained in:
Jay V
2025-08-28 17:10:41 -04:00
parent 36ec9dddb2
commit 4d81f90dde
3 changed files with 22 additions and 27 deletions

View File

@@ -23,9 +23,10 @@ function CopyStatus() {
const isLoggedIn = query(async () => {
"use server"
const actor = await getActor()
console.log(actor)
if (actor.type === "account") {
const workspaces = await withActor(() => Account.workspaces())
throw redirect("/" + workspaces[0].id)
throw redirect(`/workspace/${workspaces[0].id}`)
}
return false
}, "isLoggedIn")