mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 08:28:35 +00:00
Fixes the incorrect error message while resetting password (#948)
This commit is contained in:
parent
1561884fad
commit
dcbc594e59
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,6 @@ class ForgotPassword extends React.Component {
|
|||
};
|
||||
|
||||
handleClick = (event) => {
|
||||
this.setState({ buttonClicked: true });
|
||||
event.preventDefault();
|
||||
|
||||
fetch(`${config.apiUrl}/forgot_password`, {
|
||||
|
|
@ -38,6 +37,7 @@ class ForgotPassword extends React.Component {
|
|||
this.setState({ isEmailFound: true });
|
||||
return res.json();
|
||||
} else {
|
||||
this.setState({ buttonClicked: true });
|
||||
this.setState({ isEmailFound: false });
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue