Skip to content

Commit 75145a7

Browse files
committed
Revert "Add clearTimeout"
This reverts commit 834a218.
1 parent 834a218 commit 75145a7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ function MoneyRequestReportPreviewContent({
565565
return;
566566
}
567567
const newTransaction = carouselTransactions.at(index);
568-
const timeoutID = setTimeout(() => {
568+
setTimeout(() => {
569569
if (!isFocusedRef.current) {
570570
return;
571571
}
@@ -582,10 +582,6 @@ function MoneyRequestReportPreviewContent({
582582
});
583583
}, CONST.ANIMATED_TRANSITION);
584584

585-
return () => {
586-
clearTimeout(timeoutID);
587-
};
588-
589585
// We only want to scroll to a new transaction when the set of new transaction IDs changes.
590586
// eslint-disable-next-line react-hooks/exhaustive-deps
591587
}, [newTransactionIDs]);

0 commit comments

Comments
 (0)