Skip to content

Commit

Permalink
fix: add check for newsletter modal and fix typo (#3727)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Feb 7, 2025
1 parent f91803a commit 5fdcab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/plugins/wc-memberships/class-memberships.php
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ public static function render_js() {
if ( ev.detail.authenticated && ! window?.newspackReaderActivation?.getPendingCheckout() ) {
if ( ras.overlays.get().length ) {
ras.on( 'overlay', function( ev ) {
if ( ! ev.detail.overlays.length ) {
if ( ! ev.detail.overlays.length && ! window?.newspackReaderActivation?.openNewslettersSignupModal ) {
window.location.reload();
}
} );
Expand Down
2 changes: 1 addition & 1 deletion src/reader-activation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function openNewslettersSignupModal( config = {} ) {
config = {
...{
onSuccess: null,
onDissmiss: null,
onDismiss: null,
onError: null,
initialState: null,
skipSuccess: false,
Expand Down

0 comments on commit 5fdcab6

Please sign in to comment.