We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bdbfb4 commit 616bf91Copy full SHA for 616bf91
pages/realms/index.tsx
@@ -53,7 +53,12 @@ const Realms = () => {
53
const [certifiedRealms] = await Promise.all([
54
getCertifiedRealmInfos(connection),
55
])
56
- const allRealms =
+
57
+ const certifiedSelfHostedRealms = certifiedRealms.filter(
58
+ realm => realm.programId.toBase58() !== DEFAULT_GOVERNANCE_PROGRAM_ID
59
+ )
60
61
+ const uncharteredRealms =
62
queryRealms?.map((x) => {
63
const realm = certifiedRealms.find((y) => y.realmId.equals(x.pubkey))
64
@@ -69,6 +74,7 @@ const Realms = () => {
69
74
})
70
75
}) ?? []
71
76
77
+ const allRealms = [...certifiedSelfHostedRealms, ...uncharteredRealms]
72
78
73
79
if (metadata) {
80
const updatedRealms = allRealms.map((realm) => {
0 commit comments