mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Bind the api method to the splash page
otherwise, `this` is undefined. Fixes #673.
This commit is contained in:
parent
77644aafb2
commit
7cb14c17b9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue