From d611d5e6a86f304711ec594333207fcfd2f5b6dd Mon Sep 17 00:00:00 2001 From: Nouman Tahir Date: Mon, 12 Jul 2021 12:29:09 +0500 Subject: [PATCH] fixed issue with mark all read endpoint --- src/screens/notification/container/notificationContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));