Compare commits
No commits in common. "432d182d150cfcc1a38d995e92d0877236090766" and "870262fcdc2726846841d25e9d256f140a1ab314" have entirely different histories.
432d182d15
...
870262fcdc
@ -116,17 +116,15 @@ 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.Site_And_Mine ||
|
||||
item === WOTFilterOptions.Mine_Only) &&
|
||||
!userState.auth
|
||||
) {
|
||||
return null
|
||||
}
|
||||
|
||||
// when logged in user not admin
|
||||
if (
|
||||
item === WOTFilterOptions.None ||
|
||||
item === WOTFilterOptions.Mine_Only
|
||||
) {
|
||||
if (item === WOTFilterOptions.None) {
|
||||
const isAdmin =
|
||||
userState.user?.npub ===
|
||||
import.meta.env.VITE_REPORTING_NPUB
|
||||
|
Loading…
Reference in New Issue
Block a user