mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Make the shouldRender return type more explicit
This commit is contained in:
parent
a01866549c
commit
36ca26d27d
4 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ class CartBootstrap {
|
|||
}
|
||||
|
||||
shouldRender() {
|
||||
return document.querySelector(this.gateway.button.wrapper);
|
||||
return document.querySelector(this.gateway.button.wrapper) !== null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ class CheckoutBootstap {
|
|||
return false;
|
||||
}
|
||||
|
||||
return document.querySelector(this.gateway.button.wrapper);
|
||||
return document.querySelector(this.gateway.button.wrapper) !== null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class MiniCartBootstap {
|
|||
}
|
||||
|
||||
shouldRender() {
|
||||
return document.querySelector(this.gateway.button.mini_cart_wrapper);
|
||||
return document.querySelector(this.gateway.button.mini_cart_wrapper) !== null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class SingleProductBootstap {
|
|||
return false;
|
||||
}
|
||||
|
||||
return document.querySelector(this.gateway.button.wrapper);
|
||||
return document.querySelector(this.gateway.button.wrapper) !== null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue