Skip to content

Commit

Permalink
ProjectTile.jsx: fix error when project has no description
Browse files Browse the repository at this point in the history
  • Loading branch information
vellip authored and hom3mad3 committed Nov 4, 2024
1 parent 305ddca commit 9d8e4bd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions meinberlin/react/projects/ProjectTile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ const ProjectTile = ({ project, isHorizontal, topicChoices }) => {
<ProjectTopics project={project} topicChoices={topicChoices} />
</div>}
<h3 className="project-tile__title" id={labelId}>{project.title}</h3>
<p className="project-tile__description">
{truncateText(project.description)}
</p>
{project.description && (
<p className="project-tile__description">
{truncateText(project.description)}
</p>
)}

{project.active_phase &&
<>
Expand Down

0 comments on commit 9d8e4bd

Please sign in to comment.