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 -1
View File
@@ -143,7 +143,7 @@ const Board = ({ feedCacheKey, viewType, boardIdentifier: boardIdentifierProp, t
}, [filteredComments, reset]);
const subplebbit = useSubplebbit({ subplebbitAddress });
const { createdAt, description, error, rules, shortAddress, state, suggested } = subplebbit || {};
const { error, shortAddress, state } = subplebbit || {};
const title = isInAllView ? t('all') : isInSubscriptionsView ? t('subscriptions') : isInModView ? t('mod') : subplebbit?.title;
const { blocked, unblock } = useBlock({ address: subplebbitAddress });
+1 -1
View File
@@ -58,7 +58,7 @@ const PostPage = () => {
const comment = useComment({ commentCid });
const subplebbit = useSubplebbit({ subplebbitAddress });
const { createdAt, description, rules, shortAddress, suggested, title } = subplebbit || {};
const { shortAddress, title } = subplebbit || {};
// if the comment is a reply, return the post comment instead, then the reply will be highlighted in the thread
const postComment = useComment({ commentCid: comment?.postCid });