mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
fix: replace incorrect typeof usage with proper undefined check
This commit is contained in:
parent
3ab7fe0af3
commit
9d16c2d680
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ document.addEventListener( 'DOMContentLoaded', () => {
|
|||
);
|
||||
const link = document.querySelector( 'a.settings-switch-ui' );
|
||||
|
||||
if ( ! typeof config || ( ! button && ! link ) ) {
|
||||
if ( typeof config === 'undefined' || ( ! button && ! link ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue