@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.
- package/dist/react/index.js +1 -8
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -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
|
|
10071
|
+
}, [onOpen]);
|
|
10079
10072
|
const handleClose = useCallback(() => {
|
|
10080
10073
|
setView("idle");
|
|
10081
10074
|
setSelectedFile(null);
|