diff --git a/src/components/Article.jsx b/src/components/Article.jsx index 3dd851c..ea0e950 100644 --- a/src/components/Article.jsx +++ b/src/components/Article.jsx @@ -40,7 +40,7 @@ export default function Article({ }); }; - const slicedTitle = title.length > 60 ? `${title.slice(0, 60)} ...` : title; + const slicedTitle = title?.length > 60 ? `${title.slice(0, 60)} ...` : title; const urlText = url?.split("/")[2];