diff --git a/src/components/common/AnimatedSticker.tsx b/src/components/common/AnimatedSticker.tsx index a94bcd821..dde67df13 100644 --- a/src/components/common/AnimatedSticker.tsx +++ b/src/components/common/AnimatedSticker.tsx @@ -177,10 +177,7 @@ const AnimatedSticker: FC = ({ useEffect(() => { return () => { - if (animationRef.current) { - animationRef.current.removeContainer(containerId); - animationRef.current = undefined; - } + animationRef.current?.removeContainer(containerId); }; }, [containerId]);