diff --git a/src/screens/notification/container/notificationContainer.js b/src/screens/notification/container/notificationContainer.js index 0e645561e..97e84500a 100644 --- a/src/screens/notification/container/notificationContainer.js +++ b/src/screens/notification/container/notificationContainer.js @@ -108,7 +108,7 @@ class NotificationContainer extends Component { }; _readAllNotification = () => { - const { username, dispatch, intl, isConnected } = this.props; + const { dispatch, intl, isConnected } = this.props; const { notifications } = this.state; if (!isConnected) { @@ -117,7 +117,7 @@ class NotificationContainer extends Component { this.setState({ isNotificationRefreshing: true }); - markNotifications(username) + markNotifications() .then(() => { const updatedNotifications = notifications.map((item) => ({ ...item, read: 1 })); dispatch(updateUnreadActivityCount(0));