diff --git a/frontend/src/Auth/Login.tsx b/frontend/src/Auth/Login.tsx index a51f64e..b5a5640 100644 --- a/frontend/src/Auth/Login.tsx +++ b/frontend/src/Auth/Login.tsx @@ -36,7 +36,8 @@ export class LoginComponent extends React.PureComponent< this.props.history.push("/signup"); } - public submit() { + public submit(e: React.FormEvent) { + e.preventDefault(); const { username, password } = this.state; if (!this.props.inProgress) { this.props.login(username, password); @@ -52,7 +53,7 @@ export class LoginComponent extends React.PureComponent< return ( <> -
+

Login