From c60de7a5a1bd934a2edaa3f9aeca785dd4471d79 Mon Sep 17 00:00:00 2001 From: Hanjiang Yu Date: Mon, 28 Nov 2022 21:42:01 +0800 Subject: [PATCH] Fix the "undefined" string in DM --- src/screens/Compose.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/Compose.tsx b/src/screens/Compose.tsx index cb3e5f3b..5a423e1f 100644 --- a/src/screens/Compose.tsx +++ b/src/screens/Compose.tsx @@ -168,7 +168,7 @@ const ScreenCompose: React.FC> = ({ textInput: 'text', composeDispatch, content: - (params.text && `${params.text}\n`) + + (params.text ? `${params.text}\n` : '') + params.accts.map(acct => `@${acct}`).join(' ') + ' ', disableDebounce: true