@pelcro/react-pelcro-js 3.26.0-beta.74 → 3.26.0-beta.75

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
@@ -9387,13 +9387,20 @@ class PelcroActions {
9387
9387
  console.error("invalid item SKU id");
9388
9388
  return false;
9389
9389
  }
9390
- const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
9391
- const itemMatchesUserCurrency = skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
9392
- if (!itemMatchesUserCurrency) {
9393
- const userCurrency = window.Pelcro.user.read().currency;
9394
- 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`);
9395
- return false;
9396
- }
9390
+ window.Pelcro.ecommerce.products.getSkus();
9391
+
9392
+ // const itemMatchesUserCurrency = skusMatchingUserCurrency.some(
9393
+ // (sku) => sku.id === quickPurchaseItem.id
9394
+ // );
9395
+
9396
+ // if (!itemMatchesUserCurrency) {
9397
+ // const userCurrency = window.Pelcro.user.read().currency;
9398
+ // console.error(
9399
+ // `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
9400
+ // );
9401
+ // return false;
9402
+ // }
9403
+
9397
9404
  const quickPurchaseItemWithQuantity = {
9398
9405
  ...quickPurchaseItem,
9399
9406
  quantity: 1
package/dist/index.esm.js CHANGED
@@ -9357,13 +9357,20 @@ class PelcroActions {
9357
9357
  console.error("invalid item SKU id");
9358
9358
  return false;
9359
9359
  }
9360
- const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
9361
- const itemMatchesUserCurrency = skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
9362
- if (!itemMatchesUserCurrency) {
9363
- const userCurrency = window.Pelcro.user.read().currency;
9364
- 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`);
9365
- return false;
9366
- }
9360
+ window.Pelcro.ecommerce.products.getSkus();
9361
+
9362
+ // const itemMatchesUserCurrency = skusMatchingUserCurrency.some(
9363
+ // (sku) => sku.id === quickPurchaseItem.id
9364
+ // );
9365
+
9366
+ // if (!itemMatchesUserCurrency) {
9367
+ // const userCurrency = window.Pelcro.user.read().currency;
9368
+ // console.error(
9369
+ // `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
9370
+ // );
9371
+ // return false;
9372
+ // }
9373
+
9367
9374
  const quickPurchaseItemWithQuantity = {
9368
9375
  ...quickPurchaseItem,
9369
9376
  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.26.0-beta.74",
4
+ "version": "3.26.0-beta.75",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",