From c413f17e71b979c2c7b65332ba6b0918019c65d9 Mon Sep 17 00:00:00 2001 From: cha0s Date: Sun, 13 Dec 2020 16:43:50 -0600 Subject: [PATCH] fix: polish --- .../components/chat/messages/submit/distinction/index.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/react/components/chat/messages/submit/distinction/index.jsx b/app/src/react/components/chat/messages/submit/distinction/index.jsx index 7ec7ac1..2271ae4 100644 --- a/app/src/react/components/chat/messages/submit/distinction/index.jsx +++ b/app/src/react/components/chat/messages/submit/distinction/index.jsx @@ -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 (
{isAdmin && (