Skip to content

Commit d7acc19

Browse files
committed
refactor: removed forgotten usecallback
1 parent f0b1232 commit d7acc19

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

packages/trader/src/AppV2/Containers/Positions/positions-content.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,9 @@ const PositionsContent = observer(({ hasButtonsDemo, isClosedTab, setHasButtonsD
6464
const shouldShowLoading = isClosedTab ? isFetchingClosedPositions : is_loading;
6565
const shouldShowTakeProfit = !isClosedTab || !!(timeFilter || customTimeRangeFilter);
6666

67-
const onScroll = React.useCallback(
68-
(e: React.UIEvent<HTMLDivElement>) => {
69-
if (isClosedTab) {
70-
handleScroll(e, true);
71-
}
72-
},
73-
[handleScroll, isClosedTab]
74-
);
67+
const onScroll = (e: React.UIEvent<HTMLDivElement>) => {
68+
if (isClosedTab) handleScroll(e, true);
69+
};
7570

7671
const contractCards = isClosedTab ? (
7772
<ContractCardsSections

0 commit comments

Comments
 (0)