Skip to content

Commit

Permalink
fix: client load on auth forms
Browse files Browse the repository at this point in the history
  • Loading branch information
KeziahMoselle committed Apr 2, 2024
1 parent f2f4220 commit aa8105c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/pages/login.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const { user } = Astro.locals;
---

<Layout title="Login">
{ !user && <LoginForm /> }
{ !user && <LoginForm client:load /> }
{ user && <h1>You are already logged in.</h1>}
</Layout>
2 changes: 1 addition & 1 deletion frontend/src/pages/register.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const { user } = Astro.locals;
---

<Layout title="Login">
{ !user && <RegisterForm /> }
{ !user && <RegisterForm client:load /> }
{ user && <h1>You are already logged in.</h1>}
</Layout>

0 comments on commit aa8105c

Please sign in to comment.