Compare commits
2 Commits
870262fcdc
...
432d182d15
Author | SHA1 | Date | |
---|---|---|---|
432d182d15 | |||
|
6e4e580402 |
@ -116,15 +116,17 @@ export const ModFilter = React.memo(
|
||||
{Object.values(WOTFilterOptions).map((item, index) => {
|
||||
// when user is not logged in
|
||||
if (
|
||||
(item === WOTFilterOptions.Site_And_Mine ||
|
||||
item === WOTFilterOptions.Mine_Only) &&
|
||||
item === WOTFilterOptions.Site_And_Mine &&
|
||||
!userState.auth
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
||||
// when logged in user not admin
|
||||
if (item === WOTFilterOptions.None) {
|
||||
if (
|
||||
item === WOTFilterOptions.None ||
|
||||
item === WOTFilterOptions.Mine_Only
|
||||
) {
|
||||
const isAdmin =
|
||||
userState.user?.npub ===
|
||||
import.meta.env.VITE_REPORTING_NPUB
|
||||
|
Loading…
Reference in New Issue
Block a user