From aca779734d24ed9b2c01049d77d386cff82aee8e Mon Sep 17 00:00:00 2001 From: Amaury Martiny Date: Thu, 5 Jul 2018 14:20:06 +0200 Subject: [PATCH] Remove componentDidCatch --- packages/fether-react/src/App/App.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/fether-react/src/App/App.js b/packages/fether-react/src/App/App.js index a624480f..fc8a44f5 100644 --- a/packages/fether-react/src/App/App.js +++ b/packages/fether-react/src/App/App.js @@ -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 ( -- GitLab