Assign a default onFinished call to prevent TypeErrors being thrown.

pull/21833/head
Kegan Dougal 2015-11-30 14:14:30 +00:00
parent 28b85bb226
commit 2002af6c7d
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ var sdk = require('../../../index');
module.exports = React.createClass({
displayName: 'MemberInfo',
getDefaultProps: function() {
return {
onFinished: function() {}
};
},
componentDidMount: function() {
// work out the current state
if (this.props.member) {