mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-12 01:18:39 +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
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue