Skip to content

Commit

Permalink
refactor(tx-list): list load (#3469)
Browse files Browse the repository at this point in the history
  • Loading branch information
banklesss authored Jul 30, 2024
1 parent 2c47b63 commit 998c61e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 998c61e

Please sign in to comment.