diff --git a/frontend/src/Register.tsx b/frontend/src/Register.tsx index 24fef08..44d3aec 100644 --- a/frontend/src/Register.tsx +++ b/frontend/src/Register.tsx @@ -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 = () => { />
- { onChange={(evt) => { setError(""); setPasswordr(evt.target.value); - passwordCheck(); }} />

{passwordHint}