mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 12:25:15 +08:00
Check that event handler is not null
It is passed as null in 5a0b0b41a9/modules/ppcp-wc-gateway/resources/js/gateway-settings.js (L85)
This commit is contained in:
parent
5a0b0b41a9
commit
f67db5c524
1 changed files with 3 additions and 1 deletions
|
@ -81,7 +81,9 @@ class Renderer {
|
|||
...contextConfig,
|
||||
onClick: this.onSmartButtonClick,
|
||||
onInit: (data, actions) => {
|
||||
this.onSmartButtonsInit(data, actions);
|
||||
if (this.onSmartButtonsInit) {
|
||||
this.onSmartButtonsInit(data, actions);
|
||||
}
|
||||
this.handleOnButtonsInit(wrapper, data, actions);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue