diff --git a/app/javascript/gabsocial/components/notification.js b/app/javascript/gabsocial/components/notification.js index dc7190aa..444e0840 100644 --- a/app/javascript/gabsocial/components/notification.js +++ b/app/javascript/gabsocial/components/notification.js @@ -1,3 +1,4 @@ +import { Fragment } from 'react' import { NavLink } from 'react-router-dom' import { injectIntl, defineMessages } from 'react-intl' import ImmutablePureComponent from 'react-immutable-pure-component' @@ -101,7 +102,16 @@ class Notification extends ImmutablePureComponent { } if (isHidden) { - // : todo : + return ( + + { + accounts && accounts.slice(0, 1).map((account, i) => ( + + )) + } + {message} + + ) } return ( @@ -114,7 +124,7 @@ class Notification extends ImmutablePureComponent {
{ - accounts.slice(0, 8).map((account, i) => ( + accounts && accounts.slice(0, 8).map((account, i) => (
{ - accounts.slice(0, 1).map((account, i) => ( + accounts && accounts.slice(0, 1).map((account, i) => ( )) }