Commit aca77973 authored by Amaury Martiny's avatar Amaury Martiny

Remove componentDidCatch

parent 9c9f34a0
......@@ -29,13 +29,6 @@ const Router =
@inject('healthStore', 'onboardingStore')
@observer
class App extends Component {
componentDidCatch () {
if (process.env.NODE_ENV !== 'development') {
// Redirect to '/' on errors
window.location.href = '/';
}
}
render () {
return (
<Router>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment