mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Remove continuation context
This commit is contained in:
parent
f77d08133d
commit
f0e2ca2b5b
3 changed files with 5 additions and 7 deletions
|
@ -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() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue