default to anon

This commit is contained in:
smolgrrr 2024-04-23 19:19:38 +10:00
parent 26ac3824cc
commit 7bf95d8e12

View File

@ -32,7 +32,7 @@ const useUniqEvents = () => {
const Home = () => { const Home = () => {
const filterDifficulty = localStorage.getItem("filterDifficulty") || DEFAULT_DIFFICULTY; const filterDifficulty = localStorage.getItem("filterDifficulty") || DEFAULT_DIFFICULTY;
const [sortByTime, setSortByTime] = useState<boolean>(localStorage.getItem('sortBy') !== 'false'); const [sortByTime, setSortByTime] = useState<boolean>(localStorage.getItem('sortBy') !== 'false');
const [setAnon, setSetAnon] = useState<boolean>(localStorage.getItem('anonMode') !== 'false'); const [setAnon, setSetAnon] = useState<boolean>(localStorage.getItem('anonMode') !== 'true');
const {noteEvents, metadataEvents } = useUniqEvents(); const {noteEvents, metadataEvents } = useUniqEvents();
const [delayedSort, setDelayedSort] = useState(false) const [delayedSort, setDelayedSort] = useState(false)