Google Pay: Fix the context being stuck on mini-cart

This commit is contained in:
Daniel Dudzic 2024-07-17 12:36:44 +02:00
parent 37ca92c57e
commit f66e6aff99
No known key found for this signature in database
GPG key ID: 31B40D33E3465483

View file

@ -13,14 +13,12 @@ class GooglepayManager {
this.buttons = [];
buttonModuleWatcher.watchContextBootstrap( async ( bootstrap ) => {
if ( ! this.contextHandler ) {
this.contextHandler = ContextHandlerFactory.create(
bootstrap.context,
buttonConfig,
ppcpConfig,
bootstrap.handler
);
}
this.contextHandler = ContextHandlerFactory.create(
bootstrap.context,
buttonConfig,
ppcpConfig,
bootstrap.handler
);
const button = new GooglepayButton(
bootstrap.context,