about summary refs log tree commit diff
path: root/src/lib/custom-animations/LikeIcon.web.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/custom-animations/LikeIcon.web.tsx')
-rw-r--r--src/lib/custom-animations/LikeIcon.web.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/custom-animations/LikeIcon.web.tsx b/src/lib/custom-animations/LikeIcon.web.tsx
index 6dc94c291..ef330bc62 100644
--- a/src/lib/custom-animations/LikeIcon.web.tsx
+++ b/src/lib/custom-animations/LikeIcon.web.tsx
@@ -41,13 +41,15 @@ const circle2Keyframe = [
 export function AnimatedLikeIcon({
   isLiked,
   big,
+  isToggle,
 }: {
   isLiked: boolean
   big?: boolean
+  isToggle: boolean
 }) {
   const t = useTheme()
   const size = big ? 22 : 18
-  const shouldAnimate = !useReducedMotion()
+  const shouldAnimate = !useReducedMotion() && isToggle
   const prevIsLiked = React.useRef(isLiked)
 
   const likeIconRef = React.useRef<HTMLDivElement>(null)