Skip to content

Commit 3195132

Browse files
committed
fix comment
1 parent 1e3b892 commit 3195132

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/hooks/useNewTransactions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ function useNewTransactions(
4949
}
5050
return transactions.filter((transaction) => !prevTransactions?.some((prevTransaction) => prevTransaction.transactionID === transaction.transactionID));
5151

52-
// We don't need to recalculate on prevTransactions as it will make the value disappear on the second render
53-
// which will break the scroll and highlight on slower devices like mobile app.
52+
// We don't need to recalculate on change of prevTransactions or pendingNewTransactionIDs as it will make the value
53+
// disappear quickly which will break the scroll and highlight on slower devices like mobile app.
5454
// eslint-disable-next-line react-hooks/exhaustive-deps
5555
}, [transactions, reportID, isFocused]);
5656

0 commit comments

Comments
 (0)