Admin: fix notification counters for approvals
This commit is contained in:
@ -7,7 +7,8 @@ const getNotifTotals = state => {
|
||||
const notifications = state.getIn(['notifications', 'unread'], 0);
|
||||
const chats = state.get('chats').reduce((acc, curr) => acc + Math.min(curr.get('unread', 0), 1), 0);
|
||||
const reports = state.getIn(['admin', 'open_report_count'], 0);
|
||||
return notifications + chats + reports;
|
||||
const approvals = state.getIn(['admin', 'awaitingApproval']).count();
|
||||
return notifications + chats + reports + approvals;
|
||||
};
|
||||
|
||||
const mapStateToProps = state => ({
|
||||
|
||||
Reference in New Issue
Block a user