diff --git a/packages/desktop-client/src/components/accounts/TransactionList.js b/packages/desktop-client/src/components/accounts/TransactionList.js index 38b00790e5aa240e62b2fc598e1a38e6cf56acdb..e8756ed2ee7ed61f9a702c20faab028c02a8054a 100644 --- a/packages/desktop-client/src/components/accounts/TransactionList.js +++ b/packages/desktop-client/src/components/accounts/TransactionList.js @@ -74,24 +74,16 @@ export default function TransactionList({ renderEmpty, onChange, onRefetch, - onRefetchUpToRow, onCloseAddTransaction, onCreatePayee }) { let transactionsLatest = useRef(); - let scrollTo = useRef(); let history = useHistory(); - useEffect(clearScrollTo); - useLayoutEffect(() => { transactionsLatest.current = transactions; }, [transactions]); - function clearScrollTo() { - scrollTo.current = null; - } - let onAdd = useCallback(async newTransactions => { newTransactions = realizeTempTransactions(newTransactions); @@ -186,7 +178,6 @@ export default function TransactionList({ onAddSplit={onAddSplit} onManagePayees={onManagePayees} onCreatePayee={onCreatePayee} - onScroll={clearScrollTo} style={{ backgroundColor: 'white' }} /> );