From 7c9ad4af4f2b8c150d88cfd8b25f4c833aa40b45 Mon Sep 17 00:00:00 2001 From: Javier Bueno Date: Tue, 30 Jul 2024 09:39:55 +0200 Subject: [PATCH] refactor(tx-list): list load --- .../src/features/Transactions/useCases/TxList/TxList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wallet-mobile/src/features/Transactions/useCases/TxList/TxList.tsx b/apps/wallet-mobile/src/features/Transactions/useCases/TxList/TxList.tsx index ad4ce086ef..a06d5d3200 100644 --- a/apps/wallet-mobile/src/features/Transactions/useCases/TxList/TxList.tsx +++ b/apps/wallet-mobile/src/features/Transactions/useCases/TxList/TxList.tsx @@ -28,7 +28,7 @@ export const TxList = (props: Props) => { const [currentIndex, setCurrentIndex] = React.useState(batchSize) React.useEffect(() => { - setLoadedTxs(filteredTransactions.slice(0, batchSize)) + setLoadedTxs(filteredTransactions.slice(0, currentIndex + batchSize)) // eslint-disable-next-line react-hooks/exhaustive-deps }, [transactionInfos]) // must be transactionInfos