Skip to content

Commit

Permalink
fix: re-run the effect when data changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Nov 16, 2024
1 parent 5756d91 commit 41e2c4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/workspace/use-cli-commands.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 41e2c4f

Please sign in to comment.