Skip to content

Commit

Permalink
Removed unnecessary filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Dec 4, 2023
1 parent 028d40e commit bf492d3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/data/formulas/contract/daoCore/veto.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ContractFormula } from '@/core'

import { isExpirationExpired } from '../../utils'
import {
config as multipleChoiceConfig,
proposal as multipleChoiceProposal,
Expand Down Expand Up @@ -129,14 +128,9 @@ export const vetoableProposals: ContractFormula<VetoableProposalDaos[]> = {
// Only include open proposals if early execute enabled.
((proposal.proposal.status === StatusEnum.Open &&
config.veto?.early_execute) ||
// Include all veto timelock proposals that are not
// expired.
// Include all veto timelock proposals.
(typeof proposal.proposal.status === 'object' &&
'veto_timelock' in proposal.proposal.status &&
!isExpirationExpired(
env,
proposal.proposal.status.veto_timelock.expiration
)))
'veto_timelock' in proposal.proposal.status))
),
}
}
Expand Down

0 comments on commit bf492d3

Please sign in to comment.