Skip to content

Commit 162237e

Browse files
fix: prevent default form submission
1 parent dab2af5 commit 162237e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontend/src/components/LoginForm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ const LoginForm = observer(({ location }) => {
2121

2222
const changePassword = e => setPassword(e.target.value)
2323

24-
const login = () => {
24+
const login = event => {
25+
event.preventDefault()
2526
rootStore.authStore.login(username, password)
2627
}
2728

0 commit comments

Comments
 (0)