From de8fe10b90e8f20e5db637a9c52cb21aa936abac Mon Sep 17 00:00:00 2001 From: jdrskr Date: Mon, 4 Dec 2023 17:22:19 +0100 Subject: [PATCH] fix: build --- frontend/src/context/Web3Context.tsx | 1 + frontend/src/pages/admin/pages/OrdersPage.tsx | 2 +- frontend/src/pages/client/pages/HoldingsPage.tsx | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/context/Web3Context.tsx b/frontend/src/context/Web3Context.tsx index 06dae7e..705bdc4 100644 --- a/frontend/src/context/Web3Context.tsx +++ b/frontend/src/context/Web3Context.tsx @@ -117,6 +117,7 @@ export const Web3ContextProvider: React.FC> = ({ } return; + // eslint-disable-next-line }, []); // Update the context on graphql data changes diff --git a/frontend/src/pages/admin/pages/OrdersPage.tsx b/frontend/src/pages/admin/pages/OrdersPage.tsx index 2d3d0e1..a159ec0 100644 --- a/frontend/src/pages/admin/pages/OrdersPage.tsx +++ b/frontend/src/pages/admin/pages/OrdersPage.tsx @@ -30,7 +30,7 @@ export const OrdersPage: React.FC = () => { }[]; }>; }>(); - + // eslint-disable-next-line const [{ signer, address }, setSigner] = React.useState<{ address?: string; signer?: ethers.Signer; diff --git a/frontend/src/pages/client/pages/HoldingsPage.tsx b/frontend/src/pages/client/pages/HoldingsPage.tsx index c545e6e..8dd4856 100644 --- a/frontend/src/pages/client/pages/HoldingsPage.tsx +++ b/frontend/src/pages/client/pages/HoldingsPage.tsx @@ -27,8 +27,6 @@ export const HoldingsPage: React.FC = () => { const balance = await contract.balanceOf(address); - console.log(balance.toString()); - x = { ...x, [asset]: balance.div(BigNumber.from(10).pow(18)).toString(), @@ -48,6 +46,7 @@ export const HoldingsPage: React.FC = () => { if (signer) { fetchBalances(); } + // eslint-disable-next-line }, [signer]); return (