Skip to content

Commit

Permalink
refactor: optional chaining in Tags.tsx (#882)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
harshit-senpai and derberg authored Apr 17, 2024
1 parent 61355cb commit 739dab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/components/Tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface Props {
}

export const Tags: React.FunctionComponent<Props> = ({ tags }) => {
if (!tags || !tags.length) {
if (!tags?.length) {
return null;
}

Expand Down

0 comments on commit 739dab3

Please sign in to comment.