mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
fixed error message on login form
This commit is contained in:
parent
955b5927ca
commit
3814a56fdb
1 changed files with 3 additions and 2 deletions
|
@ -82,7 +82,8 @@ const LoginDialogUnconnected: FC<IProps> = ({
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (error) userSetLoginError('');
|
if (error) userSetLoginError('');
|
||||||
}, [username, password, error, userSetLoginError]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [username, password]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
window.addEventListener('message', onMessage);
|
window.addEventListener('message', onMessage);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue