Merge pull request #493 from de1acr0ix/fix-undefined-in-dm

Fix the "undefined" string in DM
This commit is contained in:
xmflsct 2022-11-28 22:53:35 +01:00 committed by GitHub
commit b80c84f181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
textInput: 'text',
composeDispatch,
content:
(params.text && `${params.text}\n`) +
(params.text ? `${params.text}\n` : '') +
params.accts.map(acct => `@${acct}`).join(' ') +
' ',
disableDebounce: true