mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Avoid using this.state inside this.setState() (#1176)
* Update LoginPage.jsx * Update LoginPage.jsx
This commit is contained in:
parent
cf4e28c59e
commit
9b59d0820b
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ class LoginPage extends React.Component {
|
|||
};
|
||||
|
||||
handleOnCheck = () => {
|
||||
this.setState({ showPassword: !this.state.showPassword });
|
||||
this.setState((prev) => ({ showPassword: !prev.showPassword }));
|
||||
};
|
||||
|
||||
authUser = (e) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue