Commit 3721ecfd authored by Andrew Sliwinski's avatar Andrew Sliwinski

Fix error in parsing count from updated API route. Re: GH-316

parent 86c93df7
......@@ -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