From 423ab5c98de3a84c46f7a068dd62808cd24fd9c5 Mon Sep 17 00:00:00 2001 From: Matchu Date: Thu, 8 Oct 2020 04:20:23 -0700 Subject: [PATCH] oops, un-break the homepage! --- src/app/components/OutfitPreview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {