From 998c61e14cd4f4560388b182259e94b833a83f3a Mon Sep 17 00:00:00 2001 From: banklesss <105349292+banklesss@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:56:49 +0200 Subject: [PATCH] refactor(tx-list): list load (#3469) --- .../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