fix eslint warnings

This commit is contained in:
plebeius
2025-12-23 19:21:48 +01:00
parent 3963c2cb8d
commit 34bebda4f7
6 changed files with 3 additions and 13 deletions
@@ -1,4 +1,4 @@
import { useLocation, useParams } from 'react-router-dom';
import { useParams } from 'react-router-dom';
import { Trans, useTranslation } from 'react-i18next';
import { useAccountComment, useSubplebbitStats } from '@plebbit/plebbit-react-hooks';
import useSubplebbitsStore from '@plebbit/plebbit-react-hooks/dist/stores/subplebbits';
@@ -22,8 +22,6 @@ const SubplebbitStats = () => {
const { hiddenStats, toggleVisibility } = useSubplebbitStatsVisibilityStore();
const isHidden = hiddenStats[address];
const location = useLocation();
const comment = useSubplebbitsPagesStore((state) => state.comments[params?.commentCid as string]);
const { deleted, locked, removed } = comment || {};
const hideStats = deleted || locked || removed;