Skip to content

Commit

Permalink
url.parse require string
Browse files Browse the repository at this point in the history
  • Loading branch information
pastak committed Sep 5, 2015
1 parent ff595bf commit 1c5499f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const App = React.createClass({
},

inputIsValid () {
return url.parse(this.state.slack).host === 'hooks.slack.com'
return url.parse(this.state.slack || '').host === 'hooks.slack.com'
},

render () {
Expand Down

0 comments on commit 1c5499f

Please sign in to comment.