Skip to content

Commit

Permalink
some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Krish2208 committed Aug 24, 2022
1 parent 11cb28b commit ed66ce7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/Components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ function SignUp() {
"Something went wrong! Please Try Again!"
);
const [passerr, setPasserr] = React.useState("");
const [emailerr, setEmailerr] = React.useState("");
const handleRegister = () => {
axios
.post("https://p-club-iiti-cp.herokuapp.com/register", {
Expand Down Expand Up @@ -56,8 +55,6 @@ function SignUp() {
if (email.split("@").at(-1) !== "iiti.ac.in") setDisabled(true);
if (password !== confirmPassword) setPasserr("Passwords Dont Match");
else setPasserr("");
if (!/\S+@iiti.ac.in/.test(email)) setEmailerr("Use IITI Email Address");
else setEmailerr("");
}, [password, confirmPassword]);

return (
Expand Down Expand Up @@ -205,7 +202,6 @@ function SignUp() {
</div>
<div className="pass">
<p>{passerr}</p>
<p>{emailerr}</p>
</div>
</div>
<div className="centerRow">
Expand Down

0 comments on commit ed66ce7

Please sign in to comment.