diff --git a/components/workspace/use-cli-commands.tsx b/components/workspace/use-cli-commands.tsx index 290a0ae..e8c5851 100644 --- a/components/workspace/use-cli-commands.tsx +++ b/components/workspace/use-cli-commands.tsx @@ -21,6 +21,8 @@ import { FormatErrors } from "./format-errors"; import { ShareLink } from "./share-link"; import Link from "next/link"; +const PROPOSAL_TIMEOUT = 15 * 60 * 1000; // proposal expires after 15 minutes + export function useCliCommands() { const terminalContext = useContext(TerminalContext); const pathname = usePathname(); @@ -373,7 +375,7 @@ function CheckProposalInfo({ id }: { id: string }) { const {data, loading} = useProposalsInfo( [id], - releasedTxId ? 1000 : undefined + releasedTxId ? undefined : 1000 ); useEffect(() => { @@ -381,8 +383,6 @@ function CheckProposalInfo({ id }: { id: string }) { setReleasedTxId(releasedTxId); }, [loading, data]); - const PROPOSAL_TIMEOUT = 15 * 60 * 1000; // proposal expires after 15 minutes - useEffect(() => { setTimedOut(false); const timer = setTimeout(() => {