diff --git a/app/containers/Notifications/Notifications.jsx b/app/containers/Notifications/Notifications.jsx index 2981789e4..23a7039fb 100644 --- a/app/containers/Notifications/Notifications.jsx +++ b/app/containers/Notifications/Notifications.jsx @@ -30,11 +30,11 @@ class Notifications extends Component { // Adapted from https://github.com/gor181/react-notification-system-redux/blob/master/src/notifications.js const { hideNotification } = this.props const { notifications } = nextProps - const notificationIds = notifications.map(notification => notification.id) if (notifications.length > 0) { const systemNotifications = this.rnsRef.state.notifications || [] const systemNotificationsIds = systemNotifications.map(notification => notification.id) + const notificationIds = notifications.map(notification => notification.id) difference(systemNotificationsIds, notificationIds).forEach(notificationId => this.rnsRef.removeNotification(notificationId))