Skip to content

Commit 5c1cce6

Browse files
committed
hide report button when no link
1 parent ef9003e commit 5c1cce6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/component/CommentCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ export function CommentCard(props: CommentCardPropTypes) {
215215
}}
216216
/>
217217
)}
218-
{!invalid && <ReportInvalidButton commentId={commentId} />}
218+
{!invalid && content.text.includes("http") && <ReportInvalidButton commentId={commentId} />}
219219
</Typography>
220220
</div>
221221

0 commit comments

Comments
 (0)