Skip to content

Commit

Permalink
🐛 check if URL exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yumincho committed Feb 23, 2024
1 parent ee4159d commit 110ef27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PublicationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function PublicationCard({ pub }: { pub: Publication }) {
<Author>{pub.authors.map(({ name, lastName }, i) => name + ' ' + lastName).join(', ')}</Author>
</Info>
<SubInfo>
{pub.links && (
{pub.links && pub.links?.length > 0 && (
<URLs>
{pub.links?.map(({ url, type }, i) => (
<URL href={url} key={i} type={type} target="_blank">
Expand Down

0 comments on commit 110ef27

Please sign in to comment.