diff --git a/content/blog/2015-12-16-ismounted-antipattern.md b/content/blog/2015-12-16-ismounted-antipattern.md index c49e2cf1..3fc65462 100644 --- a/content/blog/2015-12-16-ismounted-antipattern.md +++ b/content/blog/2015-12-16-ismounted-antipattern.md @@ -43,7 +43,7 @@ If you use ES6 promises, you may need to wrap your promise in order to make it c ```js const cancelablePromise = makeCancelable( - new Promise(r => component.setState({...}})) + new Promise(r => component.setState({...})) ); cancelablePromise