@pelcro/react-pelcro-js 3.46.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +10 -6
- package/dist/index.esm.js +10 -6
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9118,12 +9118,16 @@ class PelcroActions {
|
|
|
9118
9118
|
return false;
|
|
9119
9119
|
}
|
|
9120
9120
|
const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
}
|
|
9121
|
+
skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
|
|
9122
|
+
|
|
9123
|
+
// if (!itemMatchesUserCurrency) {
|
|
9124
|
+
// const userCurrency = window.Pelcro.user.read().currency;
|
|
9125
|
+
// console.error(
|
|
9126
|
+
// `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
|
|
9127
|
+
// );
|
|
9128
|
+
// return false;
|
|
9129
|
+
// }
|
|
9130
|
+
|
|
9127
9131
|
const quickPurchaseItemWithQuantity = {
|
|
9128
9132
|
...quickPurchaseItem,
|
|
9129
9133
|
quantity: 1
|
package/dist/index.esm.js
CHANGED
|
@@ -9088,12 +9088,16 @@ class PelcroActions {
|
|
|
9088
9088
|
return false;
|
|
9089
9089
|
}
|
|
9090
9090
|
const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
}
|
|
9091
|
+
skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
|
|
9092
|
+
|
|
9093
|
+
// if (!itemMatchesUserCurrency) {
|
|
9094
|
+
// const userCurrency = window.Pelcro.user.read().currency;
|
|
9095
|
+
// console.error(
|
|
9096
|
+
// `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
|
|
9097
|
+
// );
|
|
9098
|
+
// return false;
|
|
9099
|
+
// }
|
|
9100
|
+
|
|
9097
9101
|
const quickPurchaseItemWithQuantity = {
|
|
9098
9102
|
...quickPurchaseItem,
|
|
9099
9103
|
quantity: 1
|