diff --git a/web/components/Navbar.js b/web/components/Navbar.js index d856d173..f9010af9 100644 --- a/web/components/Navbar.js +++ b/web/components/Navbar.js @@ -57,11 +57,9 @@ class TheComponent extends Component { this.props.history.replace("/forgot-password?confirm=1&username="+encodeURIComponent(this.state.resetUsername)) }) .catch(e => { - e.json().then(error => { - this.setState({ isLoading: false, error: error }); - }).catch(() => { - this.setState({ isLoading: false, error: {message:'Sorry there was a problem, check you entered the correct email address or try again later'} }); - }) + this.setState({isLoading: false}) + this.props.history.replace("/forgot-password?confirm=1&username="+encodeURIComponent(this.state.resetUsername)) + }); } @@ -390,7 +388,9 @@ class TheComponent extends Component {
+ Please enter the e-mail address that you used when registering for DiagnosisView. Following this, you will be taken to the next step in the reset procedure + } type="email" placeholder="Enter email" className="mb-4"