Skip to content

Commit

Permalink
fix: fixed button appearing on purchase section
Browse files Browse the repository at this point in the history
  • Loading branch information
meenakshi-deriv committed Sep 2, 2024
1 parent 4dfb4f4 commit 1eff5ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/javascript/app/pages/trade/purchase/purchase.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ const Purchase = () => {
const observer = new IntersectionObserver((entries) => {
const targetElement = responsivePurchaser.current;
entries.forEach(entry => {

if (entry.isIntersecting) {
if (entry.boundingClientRect.top < window.innerHeight || entry.isIntersecting) {
targetElement?.classList?.add('hide');
} else {
targetElement?.classList?.remove('hide');
Expand Down

0 comments on commit 1eff5ce

Please sign in to comment.