diff --git a/src/components/projectCard.tsx b/src/components/projectCard.tsx index ded4889..86de0f5 100644 --- a/src/components/projectCard.tsx +++ b/src/components/projectCard.tsx @@ -71,15 +71,19 @@ export function ProjectCard(props: ProjectCardProps) { {props.location}
- {props.tags && Array.isArray(props.tags) ? ( - props.tags.map((tag) => ( - - {tag} - - )) - ) : ( - No tags available - )} + {props.tags?.length !== 0 && Array.isArray(props.tags) + ? props.tags + .filter((tag) => tag && tag.trim() !== "") // Filters out null or blank tags + .map((tag) => ( + + {tag} + + )) + : null}