Skip to content

Commit

Permalink
remove console logs on orders.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
anasonmania committed Nov 8, 2024
1 parent 0abc9c0 commit c7e216b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/components/Trade/TradeTabs/Orders/Orders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,6 @@ function Orders(props: propsIF) {


useEffect(() => {

console.log('>>> pageDataCountShouldReset', pageDataCountShouldReset)
console.log('>>> pageDataCountRef.current?.pair', pageDataCountRef.current?.pair)
console.log('>>> getCurrentDataPair()', getCurrentDataPair())
console.log('>>> fetchedTransactions.limitOrders.length', fetchedTransactions.limitOrders.length)
console.log('>>> iffcheck', pageDataCountShouldReset && pageDataCountRef.current?.pair !== getCurrentDataPair() && fetchedTransactions.limitOrders.length > 0)



if(pageDataCountShouldReset && pageDataCountRef.current?.pair !== getCurrentDataPair() && fetchedTransactions.limitOrders.length > 0){
setPagesVisible([0, 1]);
Expand All @@ -316,7 +308,6 @@ function Orders(props: propsIF) {

if(pageDataCountRef.current?.counts[0] == 0 && fetchedTransactions.limitOrders.length > 0){
setPageDataCount(getInitialDataPageCounts());
console.log('for initial case')
}

}, [fetchedTransactions])
Expand Down

0 comments on commit c7e216b

Please sign in to comment.