@primestyleai/tryon 3.6.3 → 3.6.4

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.
@@ -961,9 +961,9 @@ function PrimeStyleTryonInner({
961
961
  if (["shoeEU", "shoeUS", "shoeUK"].includes(field.key)) {
962
962
  return /* @__PURE__ */ jsx(InputRow, { label: `${field.label} *`, fieldKey: field.key, placeholder: field.placeholder }, field.key);
963
963
  }
964
- const phCm = field.placeholder?.replace(/[^0-9.]/g, "") || "0";
965
- const phIn = String(field.unit === "cm" ? Math.round(parseFloat(phCm) / 2.54) : phCm);
966
- const placeholder = isCm ? field.placeholder || "" : `e.g. ${phIn}`;
964
+ const phNum = parseFloat(field.placeholder?.replace(/[^0-9.]/g, "") || "");
965
+ const phIn = !isNaN(phNum) && phNum > 0 && field.unit === "cm" ? String(Math.round(phNum / 2.54)) : "";
966
+ const placeholder = isCm ? field.placeholder || "" : phIn ? `e.g. ${phIn}` : field.placeholder || "";
967
967
  return /* @__PURE__ */ jsx(
968
968
  InputRow,
969
969
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "3.6.3",
3
+ "version": "3.6.4",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",