Dax Raad 5 месяцев назад
Родитель
Сommit
610ffbdd61
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      cloud/app/src/routes/index.tsx

+ 2 - 2
cloud/app/src/routes/index.tsx

@@ -32,7 +32,7 @@ const isLoggedIn = query(async () => {
 }, "isLoggedIn")
 
 export default function Home() {
-  const workspaceId = createAsync(() => isLoggedIn(), {
+  const auth = createAsync(() => isLoggedIn(), {
     deferStream: true,
   })
   onMount(() => {
@@ -92,7 +92,7 @@ export default function Home() {
             href="/auth"
             target="_self"
           >
-            Sign in
+            {auth() ? "Dashboard" : "Sign in"}
           </a>
         </section>