Browse Source

wip: console

Frank 5 months ago
parent
commit
9ad4dc9296
1 changed files with 4 additions and 0 deletions
  1. 4 0
      cloud/app/src/context/auth.ts

+ 4 - 0
cloud/app/src/context/auth.ts

@@ -22,7 +22,11 @@ export const getActor = async (): Promise<Actor.Info> => {
   const auth = await useAuthSession()
   const auth = await useAuthSession()
   const splits = url.pathname.split("/").filter(Boolean)
   const splits = url.pathname.split("/").filter(Boolean)
   if (splits[0] !== "workspace") {
   if (splits[0] !== "workspace") {
+    // TODO
+    console.log("before current")
+    console.log(`current: ${auth.data.current}`)
     const current = auth.data.account[auth.data.current ?? ""]
     const current = auth.data.account[auth.data.current ?? ""]
+    console.log("after current")
     if (current) {
     if (current) {
       return {
       return {
         type: "account",
         type: "account",