From 1c1b1cb2f9a09b2e9f6dc6258c1e5c7737a9515b Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Thu, 11 Apr 2019 11:44:33 -0500 Subject: [PATCH] clean up --- components/Editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/Editor.js b/components/Editor.js index bf54a06..ce9c585 100644 --- a/components/Editor.js +++ b/components/Editor.js @@ -98,7 +98,9 @@ class Editor extends React.Component { updateState = updates => { this.setState(updates, () => { - !this.gist && this.props.onUpdate(this.state) + if (!this.gist) { + this.props.onUpdate(this.state) + } }) }