Skip to content

Commit

Permalink
hide Neutron DAO A47 and A48 erroneous proposals by request of Neutro…
Browse files Browse the repository at this point in the history
…n core team
  • Loading branch information
NoahSaso committed Sep 25, 2024
1 parent dc173b5 commit db01f93
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/stateful/components/ProposalList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,17 @@ import {
useUpdatingRef,
} from '@dao-dao/stateless'
import {
ChainId,
CommonProposalListInfo,
ProposalStatus,
ProposalStatusEnum,
StatefulProposalLineProps,
StatefulProposalListProps,
} from '@dao-dao/types'
import { webSocketChannelNameForDao } from '@dao-dao/utils'
import {
NEUTRON_GOVERNANCE_DAO,
webSocketChannelNameForDao,
} from '@dao-dao/utils'

import {
useMembership,
Expand Down Expand Up @@ -286,6 +290,17 @@ export const ProposalList = ({
status,
})

// Remove erroneous Neutron proposals.
newProposalInfos = newProposalInfos.filter(
(info) =>
!(
info.proposalModule.dao.chainId === ChainId.NeutronMainnet &&
info.proposalModule.dao.coreAddress ===
NEUTRON_GOVERNANCE_DAO &&
(info.id === 'A47' || info.id === 'A48')
)
)

newOpenProposals = [
...newOpenProposals,
...newProposalInfos
Expand Down

0 comments on commit db01f93

Please sign in to comment.