Skip to content

Commit

Permalink
fix: changelog description (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty authored Nov 24, 2024
1 parent 86475ed commit f3e1211
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ export default function DevelopersChangelog({ latestVideo }) {
<div className={styles["changelog"]}>
<h3 className={styles["changelog__title"]}>Solana Changelog</h3>
<p className={styles["changelog__description"]}>
{truncateTextByWord(latestVideo.snippet?.description, 240, "...")}
{truncateTextByWord(
(
latestVideo.snippet?.description ||
"Latest changes for the Solana blockchain"
).split("---")[0],
160,
"...",
)}
</p>
<Button
to={`https://www.youtube.com/watch?v=${latestVideo.snippet.resourceId.videoId}&list=${latestVideo.snippet.playlistId}`}
Expand Down

0 comments on commit f3e1211

Please sign in to comment.