@pelcro/react-pelcro-js 3.5.1 → 3.5.2

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
@@ -22483,6 +22483,9 @@ const AddressSelectSubmit = ({
22483
22483
  isSubmitting
22484
22484
  }
22485
22485
  } = React.useContext(store$5);
22486
+ console.log("Selected", selectedAddressId);
22487
+ console.log("Selected", typeof selectedAddressId);
22488
+ console.log("IsSubmitted", isSubmitting);
22486
22489
  const {
22487
22490
  t
22488
22491
  } = useTranslation("address");
@@ -22493,7 +22496,7 @@ const AddressSelectSubmit = ({
22493
22496
  });
22494
22497
  onClick === null || onClick === void 0 ? void 0 : onClick();
22495
22498
  },
22496
- disabled: !selectedAddressId,
22499
+ disabled: selectedAddressId === "undefined" || selectedAddressId === null || !selectedAddressId,
22497
22500
  isLoading: isSubmitting
22498
22501
  }, otherProps), name !== null && name !== void 0 ? name : t("buttons.submit"));
22499
22502
  };
package/dist/index.esm.js CHANGED
@@ -22453,6 +22453,9 @@ const AddressSelectSubmit = ({
22453
22453
  isSubmitting
22454
22454
  }
22455
22455
  } = useContext(store$5);
22456
+ console.log("Selected", selectedAddressId);
22457
+ console.log("Selected", typeof selectedAddressId);
22458
+ console.log("IsSubmitted", isSubmitting);
22456
22459
  const {
22457
22460
  t
22458
22461
  } = useTranslation("address");
@@ -22463,7 +22466,7 @@ const AddressSelectSubmit = ({
22463
22466
  });
22464
22467
  onClick === null || onClick === void 0 ? void 0 : onClick();
22465
22468
  },
22466
- disabled: !selectedAddressId,
22469
+ disabled: selectedAddressId === "undefined" || selectedAddressId === null || !selectedAddressId,
22467
22470
  isLoading: isSubmitting
22468
22471
  }, otherProps), name !== null && name !== void 0 ? name : t("buttons.submit"));
22469
22472
  };
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.5.1",
4
+ "version": "3.5.2",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",