diff --git a/web/modals/threads/members/add-members-modal.react.js b/web/modals/threads/members/add-members-modal.react.js --- a/web/modals/threads/members/add-members-modal.react.js +++ b/web/modals/threads/members/add-members-modal.react.js @@ -16,7 +16,6 @@ import AddMembersListContent from './add-members-list-content.react.js'; import css from './members-modal.css'; import Button from '../../../components/button.react.js'; -import Label from '../../../components/label.react.js'; import { useSelector } from '../../../redux/redux-utils.js'; import SearchModal from '../../search-modal.react.js'; @@ -94,36 +93,8 @@ threadID, ]); - const pendingUserInfos = React.useMemo( - () => - Array.from(pendingUsersToAdd) - .map(userID => ({ - id: userID, - username: otherUserInfos[userID].username, - })) - .sort((a, b) => a.username.localeCompare(b.username)), - [otherUserInfos, pendingUsersToAdd], - ); - const pendingUserInfosWithENSNames = useENSNames(pendingUserInfos); - - const labelItems = React.useMemo(() => { - if (!pendingUserInfosWithENSNames.length) { - return null; - } - return ( -