Skip to content

Commit 291375b

Browse files
committed
fix(project-card): fixed link display logic in project card component
1 parent cbcc53d commit 291375b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/cards/project/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function ProjectCard({ project }: { project: (typeof PROJECTS)[0] }) {
6161
</div>
6262
</div>
6363
</div>
64-
) : (
64+
) : links ? (
6565
<div className="space-y-1.5">
6666
<div className="text-xs text-gray-600 dark:text-gray-400">Links</div>
6767
<div className="flex flex-col items-start gap-0.5 sm:flex-row sm:items-center sm:gap-1.5">
@@ -79,7 +79,7 @@ export function ProjectCard({ project }: { project: (typeof PROJECTS)[0] }) {
7979
))}
8080
</div>
8181
</div>
82-
)}
82+
) : null}
8383
<div className="space-y-1.5">
8484
<div className="text-xs text-gray-600 dark:text-gray-400">Stack</div>
8585
<div className="flex h-6 flex-wrap items-center gap-1.5">

0 commit comments

Comments
 (0)