Merge pull request #318 from thisandagain/bugfix/316

Fix error in parsing count from updated API route
This commit is contained in:
Andrew Sliwinski 2016-01-12 08:12:42 -05:00
commit 029a27dcce

View file

@ -100,7 +100,7 @@ var Navigation = React.createClass({
}, function (err, body) {
if (err) return this.setState({'unreadMessageCount': 0});
if (body) {
var count = parseInt(body.msg_count, this.state.unreadMessageCount);
var count = parseInt(body.count, 10);
return this.setState({'unreadMessageCount': count});
}
}.bind(this));