diff --git a/src/components/comments/CommentsSection.tsx b/src/components/comments/CommentsSection.tsx index 7d0ed584b..908ca0407 100644 --- a/src/components/comments/CommentsSection.tsx +++ b/src/components/comments/CommentsSection.tsx @@ -1,7 +1,6 @@ import { Checkbox } from 'antd' import clsx from 'clsx' import { FC } from 'react' -import { useIsMyAddressWhitelisted } from 'src/config/constants' import { PostWithSomeDetails, SpaceStruct } from 'src/types' import useLocalStorage from 'use-local-storage' import { useIsMyAddress } from '../auth/MyAccountsContext' @@ -31,16 +30,11 @@ export const CommentSection: FC = ({ const { id, repliesCount, ownerId } = struct const isPostAuthor = useIsMyAddress(ownerId) - const isWhitelisted = useIsMyAddressWhitelisted() let [showAllComments, setShowAllComments] = useLocalStorage('showAllComments', false, { parser: str => str === 'true', serializer: bool => String(bool), }) - if (!isWhitelisted) { - showAllComments = true - } - return (
= ({

- {isWhitelisted && ( - setShowAllComments(e.target.checked)} - > - - Show all comments - - - )} + setShowAllComments(e.target.checked)} + > + + Show all comments + +