mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Fix ScriptLoading when subscriptions module is disabled.
This commit is contained in:
parent
a068350c98
commit
a24d2ef87d
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export const loadPaypalScript = (config, onLoaded) => {
|
|||
}
|
||||
|
||||
// Adds data-user-id-token to script options.
|
||||
const userIdToken = config.save_payment_methods.id_token;
|
||||
const userIdToken = config?.save_payment_methods?.id_token;
|
||||
if(userIdToken) {
|
||||
scriptOptions['data-user-id-token'] = userIdToken;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue