Skip to content

Commit

Permalink
wrap button in link to prevent submit handler being called (#715)
Browse files Browse the repository at this point in the history
* wrap button in link to prevent submit handler being called

* run prettier
  • Loading branch information
choden-dev authored Jul 29, 2024
1 parent 3aef21b commit edceaa6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/components/composite/LoginForm/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ const LoginForm = ({
>
Login
</Button>
<Button variant="inverted-default-sm">
<Link href="/register">Register</Link>
</Button>
<Link href="/register" className="flex">
<Button variant="inverted-default-sm">Register</Button>
</Link>
</span>
<div className="mt-6 uppercase">
{messages.success && (
Expand Down

0 comments on commit edceaa6

Please sign in to comment.