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 }