Skip to content

Commit

Permalink
Remove refetch
Browse files Browse the repository at this point in the history
  • Loading branch information
tensojka committed Sep 21, 2024
1 parent 71ca91a commit 5dc2f97
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions frontend/src/components/StatusTransfer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from "react";
import React from "react";
import {
useAccount,
useContractRead, useNetwork
Expand All @@ -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
Expand Down Expand Up @@ -67,11 +68,6 @@ const StatusTransfer = () => {
}
}


useEffect(() => {
refetch()
}, [])

return (
<div>
<div className="flex w-full flex-grow pb-4 text-2xl font-bold">Transfer status</div>
Expand Down

0 comments on commit 5dc2f97

Please sign in to comment.