Skip to content

Commit 616bf91

Browse files
authored
fix non-visible DAOs (#140)
1 parent 1bdbfb4 commit 616bf91

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pages/realms/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ const Realms = () => {
5353
const [certifiedRealms] = await Promise.all([
5454
getCertifiedRealmInfos(connection),
5555
])
56-
const allRealms =
56+
57+
const certifiedSelfHostedRealms = certifiedRealms.filter(
58+
realm => realm.programId.toBase58() !== DEFAULT_GOVERNANCE_PROGRAM_ID
59+
)
60+
61+
const uncharteredRealms =
5762
queryRealms?.map((x) => {
5863
const realm = certifiedRealms.find((y) => y.realmId.equals(x.pubkey))
5964

@@ -69,6 +74,7 @@ const Realms = () => {
6974
})
7075
}) ?? []
7176

77+
const allRealms = [...certifiedSelfHostedRealms, ...uncharteredRealms]
7278

7379
if (metadata) {
7480
const updatedRealms = allRealms.map((realm) => {

0 commit comments

Comments
 (0)