Skip to content

Commit

Permalink
fix: filter out empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Nov 18, 2023
1 parent 97e608c commit e0ca4e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function ProjectCard({
{name}
</h3>
<div className="flex flex-wrap gap-2.5">
{tags.map((tag) => (
{tags.filter((tag) => tag.length > 0).map((tag) => (
<button
onClick={() => setQuery(tag)}
className="hover:underline rounded-md px-2.5 py-0.5 bg-primary-800 text-sm"
Expand Down

0 comments on commit e0ca4e7

Please sign in to comment.