fix login switch bug
This commit is contained in:
parent
9dc3ada60e
commit
d4f669197a
@ -35,9 +35,15 @@ const Login = (props: any) => {
|
||||
signUp
|
||||
? props.auth(email, password, true)
|
||||
: props.auth(email, password, false);
|
||||
clearForm();
|
||||
}
|
||||
};
|
||||
|
||||
const clearForm = () => {
|
||||
setEmail("");
|
||||
setPassword("");
|
||||
}
|
||||
|
||||
return (
|
||||
<StyledForm>
|
||||
<form onSubmit={authorizationHandler}>
|
||||
|
Loading…
Reference in New Issue
Block a user