Skip to content

Commit 1ba672b

Browse files
committed
fix: remove unsed
1 parent 9ebb09a commit 1ba672b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

plugins/maciVoting/hooks/useProposal.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect, useCallback } from "react";
2-
import { useBlockNumber, usePublicClient, useReadContract } from "wagmi";
2+
import { usePublicClient, useReadContract } from "wagmi";
33
import { fromHex, getAbiItem, type Hex } from "viem";
44
import { MaciVotingAbi } from "../artifacts/MaciVoting.sol";
55
import { type Action } from "@/utils/types";
@@ -28,7 +28,6 @@ export function useProposal(proposalId: string, autoRefresh = false) {
2828
const publicClient = usePublicClient({ chainId: PUBLIC_CHAIN.id });
2929
const [proposalCreationEvent, setProposalCreationEvent] = useState<ProposalCreatedLogResponse["args"]>();
3030
const [metadataUri, setMetadata] = useState<string>();
31-
const { data: blockNumber } = useBlockNumber();
3231

3332
// Proposal on-chain data
3433
const {
@@ -51,12 +50,6 @@ export function useProposal(proposalId: string, autoRefresh = false) {
5150
},
5251
});
5352

54-
/* TODO: replace with refetchInterval
55-
useEffect(() => {
56-
if (autoRefresh) proposalRefetch();
57-
}, [autoRefresh, blockNumber, proposalRefetch]);
58-
*/
59-
6053
// Creation event
6154
useEffect(() => {
6255
(async () => {

0 commit comments

Comments
 (0)