mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
fix parentheses around interval
This commit is contained in:
parent
42006a889a
commit
7917f15874
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ var Navigation = React.createClass({
|
|||
componentDidMount: function () {
|
||||
if (this.props.session.session.user) {
|
||||
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.
|
||||
this.setState({'messageCountIntervalId': intervalId});
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ var Navigation = React.createClass({
|
|||
});
|
||||
if (this.props.session.session.user) {
|
||||
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.
|
||||
this.setState({'messageCountIntervalId': intervalId});
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue