Skip to content

Commit

Permalink
fix(name): fix name route crash
Browse files Browse the repository at this point in the history
this commit fixes a crash in name route caused by upstream

closes #51
  • Loading branch information
zyachel committed Jun 18, 2023
1 parent c610ef4 commit 38ed0c6
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 218 deletions.
10 changes: 6 additions & 4 deletions src/components/name/Basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@ const Basic = ({ data, className }: Props) => {
{data.bio.short}...
</p>
}
<p className={styles.genres}>
<span className={styles.heading}>Known for: </span>
{data.knownFor.title} ({data.knownFor.role})
</p>
{data.knownFor.title && (
<p className={styles.genres}>
<span className={styles.heading}>Known for: </span>
{data.knownFor.title} ({data.knownFor.role})
</p>
)}
</CardBasic>
);
};
Expand Down

0 comments on commit 38ed0c6

Please sign in to comment.