From 50815f9be7195d736debd6bcd9d300dd95bbc738 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 12 Nov 2015 11:19:59 -0500 Subject: Rename areStatesEqual to areObjectsEqual and make it more comprehensive and accurate. --- web/react/components/channel_notifications.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/components/channel_notifications.jsx') diff --git a/web/react/components/channel_notifications.jsx b/web/react/components/channel_notifications.jsx index 43700bf36..f57fc12c5 100644 --- a/web/react/components/channel_notifications.jsx +++ b/web/react/components/channel_notifications.jsx @@ -69,7 +69,7 @@ export default class ChannelNotifications extends React.Component { newState.notifyLevel = notifyLevel; newState.markUnreadLevel = markUnreadLevel; - if (!Utils.areStatesEqual(this.state, newState)) { + if (!Utils.areObjectsEqual(this.state, newState)) { this.setState(newState); } } -- cgit v1.2.3-1-g7c22