Skip to content

Commit 02c9156

Browse files
Merge pull request #240 from CodeForPhilly/issues/login-form-submit
fix: prevent default form submission
2 parents dab2af5 + 162237e commit 02c9156

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)