react-mui-auth-page
react-mui-auth-page copied to clipboard
handleSignup not working
The signature of handleSignin and handleSignup are exactly the same but handleSignup doesn't even execute when I register (signup) by entering the input in signup fields.
The handleSignin works just fine (prints the console log in the handleSignin. But there's something wrong with the handleSignup because it doesn't even console log the entered input fields (name, email, password).
const handleSignIn = async ({ email, password }) => {
try {
await login(email, password);
} catch (error) {
alert('Login Error');
}
console.log({ email, password });
};
const handleSignUp = ({ name, email, password }) => {
console.log('It doesn't even print this log');
}
https://user-images.githubusercontent.com/70061645/181913759-2193f792-1698-49c7-9c71-ab8c8b94d4cb.mp4