Skip to content

Commit

Permalink
fix(tag): do not display count if its undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Aug 4, 2023
1 parent 1cd1d25 commit 951d47d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const TagComponent: React.FunctionComponent<{ tag: Tag, className: string | null
className={className ? className : null}
target="_blank"
data-tag={tag.name.toLowerCase()}>
{`${tag.name} (${tag.count})`}
{`${tag.name} ${tag.count ? `(${tag.count})` : ""}`}
</Link>
);
}
Expand Down

0 comments on commit 951d47d

Please sign in to comment.