From 51dcdfcfaa2d04f5484109a7e18a816bf1a17391 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 2 May 2023 08:01:52 +0800 Subject: [PATCH] Handle null status for "mention" notification --- src/components/notification.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index b9e6b747..0a1bf700 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -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 (