diff --git a/components/workspace/use-cli-commands.tsx b/components/workspace/use-cli-commands.tsx index db0c929..290a0ae 100644 --- a/components/workspace/use-cli-commands.tsx +++ b/components/workspace/use-cli-commands.tsx @@ -379,7 +379,7 @@ function CheckProposalInfo({ id }: { id: string }) { useEffect(() => { const releasedTxId = data?.getNetworkDaoProposalReleasedIndex.data?.[0]?.transactionInfo.transactionId; setReleasedTxId(releasedTxId); - }, [loading]); + }, [loading, data]); const PROPOSAL_TIMEOUT = 15 * 60 * 1000; // proposal expires after 15 minutes