react-mui-auth-page icon indicating copy to clipboard operation
react-mui-auth-page copied to clipboard

handleSignup not working

Open umermasood opened this issue 2 years ago • 0 comments

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

umermasood avatar Jul 30 '22 12:07 umermasood