login validation

This commit is contained in:
tomasz.kasprowicz 2021-01-15 20:33:42 +01:00
parent 3c333bc5ea
commit 9dc3ada60e

View File

@ -31,9 +31,11 @@ const Login = (props: any) => {
const authorizationHandler = (e: React.FormEvent) => {
e.preventDefault();
signUp
if (email.length > 0 && password.length > 0) {
signUp
? props.auth(email, password, true)
: props.auth(email, password, false);
}
};
return (