mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Run eslint autofix
This commit is contained in:
parent
36a13f6500
commit
11105d913b
141 changed files with 14160 additions and 11825 deletions
|
@ -1,16 +1,18 @@
|
|||
/**
|
||||
* @param {Object} scriptData
|
||||
* @returns {Boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
export const isPayPalSubscription = (scriptData) => {
|
||||
return scriptData.data_client_id.has_subscriptions
|
||||
&& scriptData.data_client_id.paypal_subscriptions_enabled;
|
||||
}
|
||||
export const isPayPalSubscription = ( scriptData ) => {
|
||||
return (
|
||||
scriptData.data_client_id.has_subscriptions &&
|
||||
scriptData.data_client_id.paypal_subscriptions_enabled
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {Object} scriptData
|
||||
* @returns {Boolean}
|
||||
* @return {boolean}
|
||||
*/
|
||||
export const cartHasSubscriptionProducts = (scriptData) => {
|
||||
return !! scriptData?.locations_with_subscription_product?.cart;
|
||||
}
|
||||
export const cartHasSubscriptionProducts = ( scriptData ) => {
|
||||
return !! scriptData?.locations_with_subscription_product?.cart;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue