diff --git a/src/app/components/OutfitPreview.js b/src/app/components/OutfitPreview.js index a72b1ab..75dcfeb 100644 --- a/src/app/components/OutfitPreview.js +++ b/src/app/components/OutfitPreview.js @@ -59,7 +59,9 @@ function OutfitPreview({ const [isPaused] = useLocalStorage("DTIOutfitIsPaused", true); React.useEffect(() => { - onChangeHasAnimations(layersHaveAnimations); + if (onChangeHasAnimations) { + onChangeHasAnimations(layersHaveAnimations); + } }, [layersHaveAnimations, onChangeHasAnimations]); if (error || error2) {