diff --git a/src/component/Login/LoginForm.js b/src/component/Login/LoginForm.js index 792af5b..fb0249b 100644 --- a/src/component/Login/LoginForm.js +++ b/src/component/Login/LoginForm.js @@ -143,7 +143,7 @@ function LoginForm() { if (loginCaptcha) { refreshCaptcha(); } - }, [location]); + }, [location,loginCaptcha]); const authnLogin = e => { e.preventDefault(); diff --git a/src/component/Login/Register.js b/src/component/Login/Register.js index 0051604..c8b8148 100644 --- a/src/component/Login/Register.js +++ b/src/component/Login/Register.js @@ -165,7 +165,7 @@ function Register() { if (regCaptcha) { refreshCaptcha(); } - }, []); + }, [regCaptcha]); return (