mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +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.
|
// 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) {
|
if(userIdToken) {
|
||||||
scriptOptions['data-user-id-token'] = userIdToken;
|
scriptOptions['data-user-id-token'] = userIdToken;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue