Skip to content

Commit

Permalink
fix not showing error if receive props without state
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed May 6, 2015
1 parent 26ff9bc commit 222f435
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-progress-button",
"version": "0.1.6",
"version": "0.1.7",
"description": "Simple react.js component for a inline progress indicator",
"main": "react-progress-button.js",
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions react-progress-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@
classNamespace: 'pb-',
durationError: 1200,
durationSuccess: 500,
state: '',
onClick: function() {}
};
},

getInitialState: function() {
return {
currentState: this.props.state
currentState: this.props.state || ''
};
},

Expand Down

0 comments on commit 222f435

Please sign in to comment.