From 20fc4d7478372c3a6ec61858e89223ae92d0963d Mon Sep 17 00:00:00 2001 From: inukares Date: Wed, 4 Sep 2024 16:05:11 +0200 Subject: [PATCH] fix(deps): update deps for hooks --- src/app/starknetkitNext/page.tsx | 4 ++-- src/hooks/useWaitForTx.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/starknetkitNext/page.tsx b/src/app/starknetkitNext/page.tsx index a1188e9..2f5c7a9 100644 --- a/src/app/starknetkitNext/page.tsx +++ b/src/app/starknetkitNext/page.tsx @@ -69,7 +69,7 @@ export default function StarknetkitLatest() { if (!wallet) { autoConnect() } - }, [wallet]) + }, [navigate, setConnector, setWallet, setConnectorData, wallet]) useEffect(() => { if (typeof window !== "undefined") { @@ -79,7 +79,7 @@ export default function StarknetkitLatest() { setConnector(RESET) }) } - }, []) + }, [setConnector, setConnectorData, setWallet]) return ( diff --git a/src/hooks/useWaitForTx.ts b/src/hooks/useWaitForTx.ts index b1325c6..0968912 100644 --- a/src/hooks/useWaitForTx.ts +++ b/src/hooks/useWaitForTx.ts @@ -34,7 +34,7 @@ const useWaitForTx = () => { if (lastTxHash && lastTxStatus === "pending") { waitTx() } - }, [lastTxStatus, lastTxHash]) + }, [lastTxStatus, lastTxHash, setLastTxError, setLastTxStatus]) } export { useWaitForTx }