fix password repetition check
This commit is contained in:
@@ -49,6 +49,7 @@ export const Register = () => {
|
||||
setPasswordHint("");
|
||||
} else setPasswordHint("passwords do not match");
|
||||
}
|
||||
useEffect(() => passwordCheck(), [passwordr]);
|
||||
|
||||
async function handleSubmit(e: FormEvent) {
|
||||
e.preventDefault();
|
||||
@@ -150,7 +151,6 @@ export const Register = () => {
|
||||
/>
|
||||
</div>
|
||||
<div className="field">
|
||||
<label className="label">repeat password</label>
|
||||
<input
|
||||
className={"input" + (passwordHint ? " is-danger" : "")}
|
||||
type={"password"}
|
||||
@@ -163,7 +163,6 @@ export const Register = () => {
|
||||
onChange={(evt) => {
|
||||
setError("");
|
||||
setPasswordr(evt.target.value);
|
||||
passwordCheck();
|
||||
}}
|
||||
/>
|
||||
<p className={"help is-danger"}>{passwordHint}</p>
|
||||
|
||||
Reference in New Issue
Block a user