diff --git a/components/workspace/use-cli-commands.tsx b/components/workspace/use-cli-commands.tsx index a70c65c..db0c929 100644 --- a/components/workspace/use-cli-commands.tsx +++ b/components/workspace/use-cli-commands.tsx @@ -381,11 +381,13 @@ function CheckProposalInfo({ id }: { id: string }) { setReleasedTxId(releasedTxId); }, [loading]); + const PROPOSAL_TIMEOUT = 15 * 60 * 1000; // proposal expires after 15 minutes + useEffect(() => { setTimedOut(false); const timer = setTimeout(() => { setTimedOut(true); - }, 120000); + }, PROPOSAL_TIMEOUT); return () => clearTimeout(timer); }, [id])