diff --git a/hooks/queries/proposal.ts b/hooks/queries/proposal.ts index 82e0b44717..9ff61adf8a 100644 --- a/hooks/queries/proposal.ts +++ b/hooks/queries/proposal.ts @@ -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'], @@ -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) => {