fix mod role check

This commit is contained in:
Tom
2023-05-19 21:00:36 +02:00
parent 83c3febb36
commit e86fb67540
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ const Board = () => {
if (subplebbit.roles !== undefined) {
const role = subplebbit.roles[account.address]?.role;
if (role === 'moderator' || 'admin' || 'owner') {
if (role === 'moderator' || role === 'admin' || role === 'owner') {
setIsModerator(true);
} else {
setIsModerator(false);