From 685c877ffa8383090e3c75c01aea5c6619e3900f Mon Sep 17 00:00:00 2001 From: julius Date: Fri, 19 Dec 2025 12:39:48 +0100 Subject: [PATCH] fix password repetition check --- frontend/src/Register.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}