mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Fix error in parsing count from updated API route. Re: GH-316
This commit is contained in:
parent
86c93df740
commit
3721ecfd14
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue