oops, un-break the homepage!

This commit is contained in:
Emi Matchu 2020-10-08 04:20:23 -07:00
parent 1875931a48
commit 423ab5c98d

View file

@ -59,7 +59,9 @@ function OutfitPreview({
const [isPaused] = useLocalStorage("DTIOutfitIsPaused", true);
React.useEffect(() => {
onChangeHasAnimations(layersHaveAnimations);
if (onChangeHasAnimations) {
onChangeHasAnimations(layersHaveAnimations);
}
}, [layersHaveAnimations, onChangeHasAnimations]);
if (error || error2) {