diff --git a/src/components/navigation/navigation.jsx b/src/components/navigation/navigation.jsx index 4111c48b0..7286e6cbb 100644 --- a/src/components/navigation/navigation.jsx +++ b/src/components/navigation/navigation.jsx @@ -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));