diff --git a/src/shared/components/MetaTags.jsx b/src/shared/components/MetaTags.jsx index 4b192752df..cc0067393c 100644 --- a/src/shared/components/MetaTags.jsx +++ b/src/shared/components/MetaTags.jsx @@ -25,7 +25,7 @@ function MetaTags({ feedTitle, }) { let img = `${domain}${image}`; - if (image.indexOf('http://') === 0 || image.indexOf('https://') === 0) { + if (image && (image.indexOf('http://') === 0 || image.indexOf('https://') === 0)) { img = `${image}`; } const socTitle = socialTitle || title;