From 881dedb6b6bd856ce5159d39f26f2e75975e630b Mon Sep 17 00:00:00 2001 From: codytseng Date: Thu, 4 Dec 2025 09:18:43 +0800 Subject: [PATCH] feat: limit displayed length of reaction content --- .../NotificationItem/ReactionNotification.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/NotificationList/NotificationItem/ReactionNotification.tsx b/src/components/NotificationList/NotificationItem/ReactionNotification.tsx index 13218be..0813af3 100644 --- a/src/components/NotificationList/NotificationItem/ReactionNotification.tsx +++ b/src/components/NotificationList/NotificationItem/ReactionNotification.tsx @@ -47,10 +47,13 @@ export function ReactionNotification({ ) } } + if (notification.content.length > 4) { + return null + } return notification.content }, [notification]) - if (!event || !eventId) { + if (!event || !eventId || !reaction) { return null }