Fix protocolId missing as dependency (#2396)

This commit is contained in:
ekzyis 2025-08-05 18:48:28 +02:00 committed by GitHub
parent b96b5d0c89
commit 0781156305
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -118,7 +118,7 @@ export function useWalletLogs (protocol, debug) {
}, FAST_POLL_INTERVAL) }, FAST_POLL_INTERVAL)
return () => clearInterval(interval) return () => clearInterval(interval)
}, [fetchLogs, called, noFetch, debug]) }, [fetchLogs, protocolId, called, noFetch, debug])
const loadMore = useCallback(async () => { const loadMore = useCallback(async () => {
const { data } = await fetchLogs({ variables: { protocolId, cursor, debug } }) const { data } = await fetchLogs({ variables: { protocolId, cursor, debug } })