From 7695a428a219521cfff0f7d5c8dee7fdb5d8cb88 Mon Sep 17 00:00:00 2001 From: Kirill Klimenko Date: Mon, 22 Jan 2024 17:51:47 +0100 Subject: [PATCH] Handle Snapshot proposal pending state --- src/components/ui/proposal/useProposalCountdown.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ui/proposal/useProposalCountdown.tsx b/src/components/ui/proposal/useProposalCountdown.tsx index 9184664997..f43f275ca9 100644 --- a/src/components/ui/proposal/useProposalCountdown.tsx +++ b/src/components/ui/proposal/useProposalCountdown.tsx @@ -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); }