diff --git a/src/util/ErrorBoundary.js b/src/util/ErrorBoundary.js index c848ffe..6ecbe93 100644 --- a/src/util/ErrorBoundary.js +++ b/src/util/ErrorBoundary.js @@ -8,12 +8,12 @@ class ErrorBoundary extends React.Component { } componentDidCatch(error, errorInfo) { - this.sate.error = true; - console.log(error, errorInfo); + this.setState({error: true}); + console.error(error, errorInfo); } render() { - if (this.state.error) return

Something went wrong :(

; + if (this.state.error) return

Something went wrong :/

; return this.props.children; }