mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Remove unnecessary console log
This commit is contained in:
parent
8301da1550
commit
796196bbbe
1 changed files with 2 additions and 3 deletions
|
@ -70,7 +70,6 @@ class Renderer {
|
||||||
|
|
||||||
shouldHandleShippingInPaypal = (venmoButtonClicked) => {
|
shouldHandleShippingInPaypal = (venmoButtonClicked) => {
|
||||||
if (!this.defaultSettings.should_handle_shipping_in_paypal) {
|
if (!this.defaultSettings.should_handle_shipping_in_paypal) {
|
||||||
console.log('no')
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,8 +104,8 @@ class Renderer {
|
||||||
|
|
||||||
// Check the condition and add the onShippingOptionsChange handler if needed
|
// Check the condition and add the onShippingOptionsChange handler if needed
|
||||||
if (this.shouldHandleShippingInPaypal(venmoButtonClicked)) {
|
if (this.shouldHandleShippingInPaypal(venmoButtonClicked)) {
|
||||||
options.onShippingOptionsChange = (data, actions) => handleShippingOptionsChange(data, actions, this.defaultSettings);
|
options.onShippingOptionsChange = (data, actions) => null;
|
||||||
options.onShippingAddressChange = (data, actions) => handleShippingAddressChange(data, actions, this.defaultSettings);
|
options.onShippingAddressChange = (data, actions) => null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue