@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 CHANGED
@@ -9118,12 +9118,16 @@ class PelcroActions {
9118
9118
  return false;
9119
9119
  }
9120
9120
  const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
9121
- const itemMatchesUserCurrency = skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
9122
- if (!itemMatchesUserCurrency) {
9123
- const userCurrency = window.Pelcro.user.read().currency;
9124
- console.error(`SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`);
9125
- return false;
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
- const itemMatchesUserCurrency = skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
9092
- if (!itemMatchesUserCurrency) {
9093
- const userCurrency = window.Pelcro.user.read().currency;
9094
- console.error(`SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`);
9095
- return false;
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.46.0",
4
+ "version": "3.47.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",