Remove continuation context

This commit is contained in:
Alex P. 2024-09-23 09:10:49 +03:00
parent f77d08133d
commit f0e2ca2b5b
No known key found for this signature in database
GPG key ID: 54487A734A204D71
3 changed files with 5 additions and 7 deletions

View file

@ -31,8 +31,10 @@ import moduleStorage from './Helper/GooglePayStorage';
}
function bootstrapCheckout() {
if ( context && ! [ 'continuation', 'checkout' ].includes( context ) ) {
// Context must be missing/empty, or "continuation"/"checkout" to proceed.
if ( context
&& ! [ 'checkout' ].includes( context )
&& ! (context === 'mini-cart' && ppcpConfig.continuation) ) {
// Context must be missing/empty, or "checkout"/checkout continuation to proceed.
return;
}
if ( ! CheckoutBootstrap.isPageWithCheckoutForm() ) {