Use shouldShowWelcome method to show welcome panel

Fixes GH-153. Again...
This commit is contained in:
Ray Schamp 2015-10-25 16:34:32 -04:00
parent b7f795f2d9
commit 399d91fea5

View file

@ -308,7 +308,7 @@ var Splash = injectIntl(React.createClass({
<div key="inner" className="inner"> <div key="inner" className="inner">
{this.state.session.user ? [ {this.state.session.user ? [
<div key="header" className="splash-header"> <div key="header" className="splash-header">
{this.state.session.flags.show_welcome ? [ {this.shouldShowWelcome() ? [
<Welcome key="welcome" onDismiss={this.handleDismiss.bind(this, 'welcome')}/> <Welcome key="welcome" onDismiss={this.handleDismiss.bind(this, 'welcome')}/>
] : [ ] : [
<Activity key="activity" items={this.state.activity} /> <Activity key="activity" items={this.state.activity} />