toggleNotification -> markNotificationsRead

This commit is contained in:
Lachlan Kermode
2018-12-05 11:27:33 +00:00
parent 3d09eb4543
commit eeb242ef87
4 changed files with 8 additions and 23 deletions

View File

@@ -43,8 +43,8 @@ export default class Notification extends React.Component{
}
render() {
if (this.props.isNotification) {
const notificationsToRender = this.props.notifications.filter(n => !('isRead' in n && n.isRead))
if (notificationsToRender.length > 0) {
return (
<div className={`notification-wrapper`}>
{this.props.notifications.map((notification) => {