Commit 029a27dc authored by Andrew Sliwinski's avatar Andrew Sliwinski

Merge pull request #318 from thisandagain/bugfix/316

Fix error in parsing count from updated API route
parents 04766a82 3721ecfd
......@@ -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));
......
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