From 110ef2790c08ee8994acf619e0f8a8283fc1235f Mon Sep 17 00:00:00 2001 From: Yumin Cho Date: Fri, 23 Feb 2024 21:03:06 +0900 Subject: [PATCH] :bug: check if URL exists --- src/components/PublicationCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PublicationCard.tsx b/src/components/PublicationCard.tsx index d88453e..133621c 100644 --- a/src/components/PublicationCard.tsx +++ b/src/components/PublicationCard.tsx @@ -63,7 +63,7 @@ export default function PublicationCard({ pub }: { pub: Publication }) { {pub.authors.map(({ name, lastName }, i) => name + ' ' + lastName).join(', ')} - {pub.links && ( + {pub.links && pub.links?.length > 0 && ( {pub.links?.map(({ url, type }, i) => (