This commit is contained in:
dangered wolf 2022-07-25 23:54:15 -04:00
parent 2652861cd7
commit ff541982b1
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58

View file

@ -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 || '',