From 5dc2f97fa112bf37eeb83bb9b766329eace86817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sojka?= Date: Sat, 21 Sep 2024 11:42:21 +0200 Subject: [PATCH] Remove refetch --- frontend/src/components/StatusTransfer.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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 (
Transfer status