Skip to content

Commit

Permalink
Fix timeline element not being hidden when the discussion hasn't been…
Browse files Browse the repository at this point in the history
… created
  • Loading branch information
laymonage committed Aug 12, 2023
1 parent 14f79b4 commit fd38ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Giscus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default function Giscus({ onDiscussionCreateRequest, onError }: IGiscusPr

{shouldShowCommentBox && inputPosition === 'top' ? mainCommentBox : null}

<div className={`gsc-timeline ${data.totalCommentCount === 0 ? 'hidden' : ''}`}>
<div className={`gsc-timeline ${!data.totalCommentCount ? 'hidden' : ''}`}>
{!data.isLoading
? data.frontComments.map((comment) => (
<Comment
Expand Down

0 comments on commit fd38ed1

Please sign in to comment.