Page MenuHomePhabricator

D12667.id42037.diff
No OneTemporary

D12667.id42037.diff

diff --git a/web/settings/relationship/add-users-utils.js b/web/settings/relationship/add-users-utils.js
--- a/web/settings/relationship/add-users-utils.js
+++ b/web/settings/relationship/add-users-utils.js
@@ -2,6 +2,7 @@
import * as React from 'react';
+import genesis from 'lib/facts/genesis.js';
import { useSortedENSResolvedUsers } from 'lib/hooks/ens-cache.js';
import { useUserSearchIndex } from 'lib/selectors/nav-selectors.js';
import { threadInfoSelector } from 'lib/selectors/thread-selectors.js';
@@ -208,8 +209,10 @@
const currentUserID = useSelector(state => state.currentUserInfo?.id);
const ancestorThreads = useAncestorThreads(parentThreadInfo);
-
- const communityThreadInfo = ancestorThreads[0] ?? parentThreadInfo;
+ const communityThreadInfo =
+ ancestorThreads[0] && ancestorThreads[0].id !== genesis().id
+ ? ancestorThreads[0]
+ : parentThreadInfo;
const userInfos = React.useMemo(() => {
const infos: { [string]: RelativeMemberInfo } = {};

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 7:30 AM (19 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2596319
Default Alt Text
D12667.id42037.diff (1007 B)

Event Timeline