diff --git a/src/api.ts b/src/api.ts index 9ca46f1..5a706c8 100644 --- a/src/api.ts +++ b/src/api.ts @@ -123,7 +123,7 @@ const populateTweetProperties = async ( conversation.guestToken || '', language ); - if (translateAPI !== null) { + if (translateAPI !== null && translateAPI?.translation) { apiTweet.translation = { text: translateAPI?.translation || '', source_lang: translateAPI?.sourceLanguage || '',