Handle null status for "mention" notification

pull/122/head
Lim Chee Aun 2023-05-02 08:01:52 +08:00
rodzic 9a58804142
commit 51dcdfcfaa
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -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