Commit 7917f158 authored by Matthew Taylor's avatar Matthew Taylor

fix parentheses around interval

parent 42006a88
...@@ -44,7 +44,7 @@ var Navigation = React.createClass({ ...@@ -44,7 +44,7 @@ var Navigation = React.createClass({
componentDidMount: function () { componentDidMount: function () {
if (this.props.session.session.user) { if (this.props.session.session.user) {
var intervalId = setInterval( var intervalId = setInterval(
this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username), 120000) this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username)), 120000
); // check for new messages every 2 mins. ); // check for new messages every 2 mins.
this.setState({'messageCountIntervalId': intervalId}); this.setState({'messageCountIntervalId': intervalId});
} }
...@@ -57,7 +57,7 @@ var Navigation = React.createClass({ ...@@ -57,7 +57,7 @@ var Navigation = React.createClass({
}); });
if (this.props.session.session.user) { if (this.props.session.session.user) {
var intervalId = setInterval( var intervalId = setInterval(
this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username), 120000) this.props.dispatch(messageCountActions.getCount(this.props.session.session.user.username)), 120000
); // check for new messages every 2 mins. ); // check for new messages every 2 mins.
this.setState({'messageCountIntervalId': intervalId}); this.setState({'messageCountIntervalId': intervalId});
} else { } else {
......
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