diff --git a/assets/js/paypal-checkout.js b/assets/js/paypal-checkout.js index 87b3bafbef5..210327b1e8d 100644 --- a/assets/js/paypal-checkout.js +++ b/assets/js/paypal-checkout.js @@ -237,12 +237,12 @@ jQuery( document ).ready( function( $ ) { var element = buyButtons[ i ]; // Skip if "Free Downloads" is enabled for this download. if ( element.classList.contains( 'edd-free-download' ) ) { - return; + continue; } var wrapper = element.closest( '.edd_purchase_submit_wrapper' ); if ( ! wrapper ) { - return; + continue; } // Clear contents of the wrapper.