mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix mod role check
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -93,7 +93,7 @@ const Thread = () => {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user