fix: polish
This commit is contained in:
parent
8ad0b2ba1a
commit
c413f17e71
|
@ -19,6 +19,9 @@ export default function Distinction(props) {
|
|||
const isAnonymous = channelIsAnonymous(channel);
|
||||
const isAdmin = useSelector(isAdminSelector);
|
||||
const isMod = useSelector((state) => isModOfSelector(state, renderChannel(channel)));
|
||||
if (!isAdmin && !isMod) {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<div className="chat--messageSubmitModeration">
|
||||
{isAdmin && (
|
||||
|
|
Loading…
Reference in New Issue
Block a user