diff --git a/frontend/src/LoginPage/LoginPage.jsx b/frontend/src/LoginPage/LoginPage.jsx index 5c738584f7..8ebf2ec29c 100644 --- a/frontend/src/LoginPage/LoginPage.jsx +++ b/frontend/src/LoginPage/LoginPage.jsx @@ -24,7 +24,7 @@ class LoginPage extends React.Component { }; handleOnCheck = () => { - this.setState({ showPassword: !this.state.showPassword }); + this.setState((prev) => ({ showPassword: !prev.showPassword })); }; authUser = (e) => {