diff --git a/frontend/src/components/StatusTransfer.tsx b/frontend/src/components/StatusTransfer.tsx index ac84da66..3441e660 100644 --- a/frontend/src/components/StatusTransfer.tsx +++ b/frontend/src/components/StatusTransfer.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import React from "react"; import { useAccount, useContractRead, useNetwork @@ -10,9 +10,10 @@ import { TREASURY_ADDRESS } from "../lib/config"; const StatusTransfer = () => { const { address } = useAccount() - const { data, isLoading, refetch } = useContractRead({ + const { data, isLoading } = useContractRead({ functionName: 'get_live_transfers', address: TREASURY_ADDRESS, + args: [], abi: TreasuryABI, watch: false, retry: false @@ -67,11 +68,6 @@ const StatusTransfer = () => { } } - - useEffect(() => { - refetch() - }, []) - return (