Skip to content

Commit

Permalink
fix(deps): update deps for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Inukares committed Sep 4, 2024
1 parent 0e5c62f commit 20fc4d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/starknetkitNext/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function StarknetkitLatest() {
if (!wallet) {
autoConnect()
}
}, [wallet])
}, [navigate, setConnector, setWallet, setConnectorData, wallet])

useEffect(() => {
if (typeof window !== "undefined") {
Expand All @@ -79,7 +79,7 @@ export default function StarknetkitLatest() {
setConnector(RESET)
})
}
}, [])
}, [setConnector, setConnectorData, setWallet])

return (
<Flex as="main" flexDirection="column" p="10" gap="4" w="dvw" h="100dvh">
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useWaitForTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const useWaitForTx = () => {
if (lastTxHash && lastTxStatus === "pending") {
waitTx()
}
}, [lastTxStatus, lastTxHash])
}, [lastTxStatus, lastTxHash, setLastTxError, setLastTxStatus])
}

export { useWaitForTx }

0 comments on commit 20fc4d7

Please sign in to comment.