From eb38951f06644a38e4a03a70d25c3d8d1437ad38 Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Sat, 24 Oct 2015 14:52:11 -0400 Subject: [PATCH] Set empty states on sign out also make state setting a bit more uniform --- src/views/splash/splash.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/splash/splash.jsx b/src/views/splash/splash.jsx index 1c000f8b3..95d3b9036 100644 --- a/src/views/splash/splash.jsx +++ b/src/views/splash/splash.jsx @@ -39,6 +39,8 @@ var Splash = injectIntl(React.createClass({ this.getNews(); } else { this.setState({featuredCustom: []}); + this.setState({activity: []}); + this.setState({news: []}); this.getProjectCount(); } } @@ -57,7 +59,7 @@ var Splash = injectIntl(React.createClass({ this.api({ uri: '/proxy/users/' + this.state.session.user.username + '/activity?limit=5' }, function (err, body) { - if (!err) this.setState({'activity': body}); + if (!err) this.setState({activity: body}); }.bind(this)); }, getFeaturedGlobal: function () { @@ -78,7 +80,7 @@ var Splash = injectIntl(React.createClass({ this.api({ uri: '/news?limit=3' }, function (err, body) { - if (!err) this.setState({'news': body}); + if (!err) this.setState({news: body}); }.bind(this)); }, getProjectCount: function () {