From cf3a7c97b2f43ab70090fb783677aa073fae6991 Mon Sep 17 00:00:00 2001 From: oscarzhou Date: Sat, 26 Dec 2020 11:56:39 +1300 Subject: [PATCH] testing: remove error simulation --- src/App.js | 11 +---------- src/hoc/withErrorHandler/withErrorHandler.js | 1 - 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/App.js b/src/App.js index c71878f..9946ee1 100644 --- a/src/App.js +++ b/src/App.js @@ -4,20 +4,11 @@ import Layout from './hoc/Layout/Layout'; import BurgerBuilder from './containers/BurgerBuilder/BurgerBuilder'; class App extends Component { - state = { - show: true - }; - - componentDidMount() { - setTimeout(() => { - this.setState({show: false}); - }, 3000); - } render() { return (
- {this.state.show ? : null } +
); diff --git a/src/hoc/withErrorHandler/withErrorHandler.js b/src/hoc/withErrorHandler/withErrorHandler.js index f36774d..6948748 100644 --- a/src/hoc/withErrorHandler/withErrorHandler.js +++ b/src/hoc/withErrorHandler/withErrorHandler.js @@ -21,7 +21,6 @@ const withErrorHandler = (WrappedComponent, axios) => { } componentWillUnmount() { - console.log('Will Unmount', this.reqInterceptor, this.resInterceptor); axios.interceptors.request.eject(this.reqInterceptor); axios.interceptors.response.eject(this.resInterceptor); }