mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Handle null status for "mention" notification
This commit is contained in:
parent
9a58804142
commit
51dcdfcfaa
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue