diff --git a/src/web/src/components/Posts/GitHubInfo.tsx b/src/web/src/components/Posts/GitHubInfo.tsx index a706a5e5f9..e8dd81e189 100644 --- a/src/web/src/components/Posts/GitHubInfo.tsx +++ b/src/web/src/components/Posts/GitHubInfo.tsx @@ -97,9 +97,9 @@ const GitHubInfo = ({ ghUrls }: Props) => { return (
- {repos.length > 0 && } - {issues.length > 0 && } - {pullRequests.length > 0 && } + {!!repos.length && } + {!!issues.length && } + {!!pullRequests.length && }
); diff --git a/src/web/src/components/Posts/Post.tsx b/src/web/src/components/Posts/Post.tsx index 594db5f7ac..79b8aa4375 100644 --- a/src/web/src/components/Posts/Post.tsx +++ b/src/web/src/components/Posts/Post.tsx @@ -337,7 +337,7 @@ const PostComponent = ({ postUrl }: Props) => { postDate={formatPublishedDate(post.updated)} blogUrl={post.feed.link} /> - {extractedGitHubUrls.length ? : null} + {!!extractedGitHubUrls.length && } )}