Don't show "Moderator Tools" title if there's nothing underneath

This commit is contained in:
infinite-persistence 2021-08-25 13:39:29 +08:00
parent 277d78868d
commit 3f765e2d90
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -189,7 +189,7 @@ function CommentMenuList(props: Props) {
</MenuItem>
)}
{(activeChannelIsAdmin || activeChannelIsModerator) && (
{!commentIsMine && (activeChannelIsAdmin || activeChannelIsModerator) && (
<div className="comment__menu-title">{__('Moderator tools')}</div>
)}