feat: limit displayed length of reaction content
This commit is contained in:
parent
33fa1ec441
commit
881dedb6b6
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue