1
0
Fork 0

Handle null status for "mention" notification

This commit is contained in:
Lim Chee Aun 2023-05-02 08:01:52 +08:00
parent 9a58804142
commit 51dcdfcfaa

View file

@ -79,6 +79,11 @@ function Notification({ notification, instance }) {
? contentText[isSelf ? 'poll-self' : isVoted ? 'poll-voted' : 'poll']
: contentText[type];
if (type === 'mention' && !status) {
// Could be deleted
return null;
}
return (
<div class={`notification notification-${type}`} tabIndex="0">
<div