From b8a1894b00fca1ef60f5e4607feab5db94677923 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 1 Dec 2015 14:53:42 -0500 Subject: Minor fix --- web/react/components/channel_notifications_modal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react') diff --git a/web/react/components/channel_notifications_modal.jsx b/web/react/components/channel_notifications_modal.jsx index bae1f13f0..887589468 100644 --- a/web/react/components/channel_notifications_modal.jsx +++ b/web/react/components/channel_notifications_modal.jsx @@ -33,7 +33,7 @@ export default class ChannelNotificationsModal extends React.Component { }; } componentWillReceiveProps(nextProps) { - if (nextProps.show) { + if (!this.props.show && nextProps.show) { this.onListenerChange(); ChannelStore.addChangeListener(this.onListenerChange); } else { -- cgit v1.2.3-1-g7c22