diff --git a/src/components/translation-block.jsx b/src/components/translation-block.jsx index b83605e3..ff35c12c 100644 --- a/src/components/translation-block.jsx +++ b/src/components/translation-block.jsx @@ -43,7 +43,7 @@ function TranslationBlock({ return { provider: 'lingva', content: res.translation, - detectedSourceLanguage: res.info.detectedSource, + detectedSourceLanguage: res.info?.detectedSource, info: res.info, }; });