update example

This commit is contained in:
Lachlan Kermode
2020-06-08 19:35:33 +02:00
parent f6fb40d4be
commit d963ac0643
2 changed files with 17 additions and 19 deletions

View File

@@ -42,6 +42,7 @@ export default class Notification extends React.Component {
}
render () {
if (!this.props.notifications) return null
const notificationsToRender = this.props.notifications.filter(n => !('isRead' in n && n.isRead))
if (notificationsToRender.length > 0) {
return (