From ff541982b15b4676c0da4b86f4d5f405d23758f9 Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Mon, 25 Jul 2022 23:54:15 -0400 Subject: [PATCH] part 3 --- src/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || '',