@primestyleai/tryon 5.6.12 → 5.6.13

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.
@@ -10067,15 +10067,8 @@ function PrimeStyleTryonInner({
10067
10067
  });
10068
10068
  const handleOpen = useCallback(() => {
10069
10069
  setView("body-profile");
10070
- if (profiles.length > 0) {
10071
- const sorted = [...profiles].sort((a, b) => (b.lastUsedAt || b.createdAt || 0) - (a.lastUsedAt || a.createdAt || 0));
10072
- const best = sorted[0];
10073
- if (best) {
10074
- setTimeout(() => applyProfileRef.current(best.id), 0);
10075
- }
10076
- }
10077
10070
  onOpen?.();
10078
- }, [onOpen, profiles]);
10071
+ }, [onOpen]);
10079
10072
  const handleClose = useCallback(() => {
10080
10073
  setView("idle");
10081
10074
  setSelectedFile(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.6.12",
3
+ "version": "5.6.13",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",