From 756e75ed7cf0b9ffb7429cd7bf21671273f3e726 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Tue, 10 Dec 2024 22:36:04 +0100 Subject: [PATCH] Fix latest timestamp not updated (#1705) --- components/wallet-logger.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/wallet-logger.js b/components/wallet-logger.js index a7ef8f20..7ae454c6 100644 --- a/components/wallet-logger.js +++ b/components/wallet-logger.js @@ -259,12 +259,12 @@ export function useWalletLogs (wallet, initialPage = 1, logsPerPage = 10) { if (hasMore) { setLoading(true) const result = await loadLogsPage(page + 1, logsPerPage, wallet?.def) - _setLogs(prevLogs => uniqueSort([...prevLogs, ...result.data])) + setLogs(prevLogs => uniqueSort([...prevLogs, ...result.data])) setHasMore(result.hasMore) setPage(prevPage => prevPage + 1) setLoading(false) } - }, [loadLogsPage, page, logsPerPage, wallet?.def, hasMore]) + }, [setLogs, loadLogsPage, page, logsPerPage, wallet?.def, hasMore]) const loadNew = useCallback(async () => { const latestTs = latestTimestamp.current