mirror of
https://git.youjo.love/youjo/youjo-fe.git
synced 2025-02-01 08:59:09 +01:00
Only generate mentions string if there are mentions
Otherwise, a user replying to themselves without mentioning anyone else will insert a space at the beginning of the reply text area, hiding the placeholder.
This commit is contained in:
parent
fbe7af3d56
commit
3c4cf5ed11
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ const buildMentionsString = ({user, attentions}, currentUser) => {
|
|||
return `@${attention.screen_name}`
|
||||
})
|
||||
|
||||
return mentions.join(' ') + ' '
|
||||
return mentions.length > 0 ? mentions.join(' ') + ' ' : ''
|
||||
}
|
||||
|
||||
const PostStatusForm = {
|
||||
|
|
Loading…
Reference in a new issue