summaryrefslogtreecommitdiffstats
path: root/web/react/components/notify_counts.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/notify_counts.jsx')
-rw-r--r--web/react/components/notify_counts.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/notify_counts.jsx b/web/react/components/notify_counts.jsx
index 54b9e4289..19b81556b 100644
--- a/web/react/components/notify_counts.jsx
+++ b/web/react/components/notify_counts.jsx
@@ -1,8 +1,8 @@
// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
-var utils = require('../utils/utils.jsx');
-var ChannelStore = require('../stores/channel_store.jsx');
+import * as utils from '../utils/utils.jsx';
+import ChannelStore from '../stores/channel_store.jsx';
function getCountsStateFromStores() {
var count = 0;
@@ -39,7 +39,7 @@ export default class NotifyCounts extends React.Component {
}
onListenerChange() {
var newState = getCountsStateFromStores();
- if (!utils.areStatesEqual(newState, this.state)) {
+ if (!utils.areObjectsEqual(newState, this.state)) {
this.setState(newState);
}
}