Skip to content

Commit

Permalink
fix: make sure membership gate refreshes after variation purchase (#2044
Browse files Browse the repository at this point in the history
)
  • Loading branch information
laurelfulford authored Feb 7, 2025
1 parent 841de19 commit 1555b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal-checkout/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ domReady( () => {

const openModal = el => {
if ( window.newspackReaderActivation?.overlays ) {
modalCheckout.overlayId = window.newspackReaderActivation?.overlays.add();
el.overlayId = window.newspackReaderActivation?.overlays.add();
}
el.setAttribute( 'data-state', 'open' );
document.body.style.overflow = 'hidden';
Expand Down

0 comments on commit 1555b0f

Please sign in to comment.