Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Aug 23, 2024
1 parent 654166c commit 025bf64
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/javascript/app/pages/trade/purchase/purchase.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,7 @@ const Purchase = () => {
if (purchaseSection && targetElement) {
const purchaseSectionTop = purchaseSection.offsetTop;
const bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop;

console.log({
purchaseSectionTop,
bodyScrollTop,
condition: bodyScrollTop >= purchaseSectionTop,
elem : targetElement,
});

if ((bodyScrollTop + window.innerHeight) >= purchaseSectionTop) {
targetElement.classList.add('hide');
} else {
Expand Down

0 comments on commit 025bf64

Please sign in to comment.