Skip to content

Commit

Permalink
fix proposals filter (#1897)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Oct 28, 2023
1 parent 957bf4e commit c06d205
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hooks/queries/proposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useMemo } from 'react'
import { useRealmGovernancesQuery } from './governance'
import queryClient from './queryClient'
import useLegacyConnectionContext from '@hooks/useLegacyConnectionContext'
import { HIDDEN_PROPOSALS } from '@components/instructions/tools'

export const proposalQueryKeys = {
all: (endpoint: string) => [endpoint, 'Proposal'],
Expand Down Expand Up @@ -80,7 +81,11 @@ export const useRealmProposalsQuery = () => {
getProposalsByGovernance(connection.current, realm.owner, x.pubkey)
)
)
).flat()
)
.flat()
// Blacklisted proposals which should not be displayed in the UI
// hidden legacy accounts to declutter UI
.filter((x) => HIDDEN_PROPOSALS.get(x.pubkey.toBase58()) === undefined)

// TODO instead of using setQueryData, prefetch queries on mouseover ?
results.forEach((x) => {
Expand Down

1 comment on commit c06d205

@vercel
Copy link

@vercel vercel bot commented on c06d205 Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

governance-ui – ./

app.realms.today
governance-ui-git-main-solana-labs.vercel.app
governance-ui-solana-labs.vercel.app

Please sign in to comment.