Skip to content

Commit

Permalink
add an early check for PMME initialization flag
Browse files Browse the repository at this point in the history
  • Loading branch information
timur27 committed Feb 21, 2025
1 parent b53e415 commit c5a3a30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/product-details/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jQuery( async function ( $ ) {
return;
}

const { shouldInitializePMME } = window.wcpayStripeSiteMessaging;

if ( ! shouldInitializePMME ) {
return;
}

const {
productVariations,
productId,
Expand Down

0 comments on commit c5a3a30

Please sign in to comment.