Bind the api method to the splash page

otherwise, `this` is undefined. Fixes #673.
This commit is contained in:
Matthew Taylor 2016-07-29 14:24:11 -04:00
parent 77644aafb2
commit 7cb14c17b9

View file

@ -167,7 +167,7 @@ var Splash = injectIntl(React.createClass({
json: {cue: cue, value: false}
}, function (err) {
if (!err) this.props.dispatch(sessionActions.refreshSession());
});
}.bind(this));
},
shouldShowWelcome: function () {
if (!this.props.session.session.user || !this.props.session.session.flags.show_welcome) return false;