Browse Source

wip: cloud

Dax Raad 5 months ago
parent
commit
a6e09363b8
2 changed files with 4 additions and 4 deletions
  1. 3 1
      cloud/app/src/entry-server.tsx
  2. 1 3
      cloud/app/src/routes/workspace.tsx

+ 3 - 1
cloud/app/src/entry-server.tsx

@@ -20,4 +20,6 @@ export default createHandler(() => (
       </html>
     )}
   />
-))
+), {
+  mode: "async",
+})

+ 1 - 3
cloud/app/src/routes/workspace.tsx

@@ -42,9 +42,7 @@ export default function WorkspaceLayout(props: RouteSectionProps) {
           </a>
         </div>
         <div data-slot="header-actions">
-          {userInfo() &&
-            <span>{userInfo()!.user.email}</span>
-          }
+          <span>{userInfo()?.user.email}</span>
           <form action={logout} method="post">
             <button type="submit" formaction={logout}>Logout</button>
           </form>