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
|
return notification.content
|
||||||
}, [notification])
|
}, [notification])
|
||||||
|
|
||||||
if (!event || !eventId) {
|
if (!event || !eventId || !reaction) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue