fix: polish

This commit is contained in:
cha0s 2020-12-13 16:43:50 -06:00
parent 8ad0b2ba1a
commit c413f17e71

View File

@ -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 && (