WoT implemented, plus other fixes #160

Merged
freakoverse merged 36 commits from staging into master 2024-11-20 16:39:08 +00:00
Showing only changes of commit 432d182d15 - Show all commits

View File

@ -116,15 +116,17 @@ export const ModFilter = React.memo(
{Object.values(WOTFilterOptions).map((item, index) => { {Object.values(WOTFilterOptions).map((item, index) => {
// when user is not logged in // when user is not logged in
if ( if (
(item === WOTFilterOptions.Site_And_Mine || item === WOTFilterOptions.Site_And_Mine &&
item === WOTFilterOptions.Mine_Only) &&
!userState.auth !userState.auth
) { ) {
return null return null
} }
// when logged in user not admin // when logged in user not admin
if (item === WOTFilterOptions.None) { if (
item === WOTFilterOptions.None ||
item === WOTFilterOptions.Mine_Only
) {
const isAdmin = const isAdmin =
userState.user?.npub === userState.user?.npub ===
import.meta.env.VITE_REPORTING_NPUB import.meta.env.VITE_REPORTING_NPUB