Commit 7cb14c17 authored by Matthew Taylor's avatar Matthew Taylor

Bind the api method to the splash page

otherwise, `this` is undefined. Fixes #673.
parent 77644aaf
...@@ -167,7 +167,7 @@ var Splash = injectIntl(React.createClass({ ...@@ -167,7 +167,7 @@ var Splash = injectIntl(React.createClass({
json: {cue: cue, value: false} json: {cue: cue, value: false}
}, function (err) { }, function (err) {
if (!err) this.props.dispatch(sessionActions.refreshSession()); if (!err) this.props.dispatch(sessionActions.refreshSession());
}); }.bind(this));
}, },
shouldShowWelcome: function () { shouldShowWelcome: function () {
if (!this.props.session.session.user || !this.props.session.session.flags.show_welcome) return false; if (!this.props.session.session.user || !this.props.session.session.flags.show_welcome) return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment