Skip to content

Commit

Permalink
Handle Snapshot proposal pending state
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Jan 22, 2024
1 parent 2b3ecdd commit 7695a42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/ui/proposal/useProposalCountdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export function useProposalCountdown(proposal: FractalProposal) {
guardTimelockPeriod = timeLockPeriod.value.toNumber() * 1000 + votingDeadlineMs;
}
startCountdown(guardTimelockPeriod);
} else if (isSnapshotProposal && proposal.state === FractalProposalState.PENDING) {
startCountdown(snapshotProposal.startTime * 1000);
} else if (isSnapshotProposal) {
startCountdown(snapshotProposal.endTime * 1000);
}
Expand Down

0 comments on commit 7695a42

Please sign in to comment.