From 2b88ec7bd531cfc3be0295de6ae70aeda42a85cb Mon Sep 17 00:00:00 2001 From: shafu Date: Fri, 7 Oct 2022 14:01:23 +0200 Subject: [PATCH] rm unused imports --- src/components/layout/Navbar.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/layout/Navbar.jsx b/src/components/layout/Navbar.jsx index f482409..8342556 100644 --- a/src/components/layout/Navbar.jsx +++ b/src/components/layout/Navbar.jsx @@ -10,8 +10,7 @@ import { CONTRACT_DYAD } from "../../consts/contract"; export const NavBar = ({ tvl }) => { const { address } = useAccount(); const { disconnect } = useDisconnect(); - const { connect, connectors, error, isLoading, pendingConnector } = - useConnect(); + const { connect, connectors } = useConnect(); const [balanceOf, setBalanceOf] = useState(0); @@ -24,9 +23,6 @@ export const NavBar = ({ tvl }) => { console.log("balanceOf", data); setBalanceOf(parseInt(data._hex) / 10 ** 18); }, - onError: (e) => { - console.log("balanceOf", e); - }, }); return (