Skip to content

Commit

Permalink
Merge pull request #21 from mrkyns/fixing/initial_loading_bug_article…
Browse files Browse the repository at this point in the history
…_title

forgot a ? in title.lenght
  • Loading branch information
AdamN89 authored Apr 20, 2023
2 parents 02b7e59 + 3199090 commit 8a6e10e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 8a6e10e

Please sign in to comment.