Fix missing sorting of wallet logs (#1581)
This commit is contained in:
parent
3044c2e98f
commit
08c29b9f10
|
@ -290,7 +290,7 @@ export function useWalletLogs (wallet, initialPage = 1, logsPerPage = 10) {
|
|||
if (hasMore) {
|
||||
setLoading(true)
|
||||
const result = await loadLogsPage(page + 1, logsPerPage, wallet?.def)
|
||||
_setLogs(prevLogs => [...prevLogs, ...result.data])
|
||||
_setLogs(prevLogs => uniqueSort([...prevLogs, ...result.data]))
|
||||
setHasMore(result.hasMore)
|
||||
setPage(prevPage => prevPage + 1)
|
||||
setLoading(false)
|
||||
|
|
Loading…
Reference in New Issue