From 668ad09f5de9a7727bbce22418ed358d902394eb Mon Sep 17 00:00:00 2001 From: SeraGabor Date: Fri, 12 Jan 2024 10:40:53 +0100 Subject: [PATCH] fix: conditional anim play --- src/components/sections/two-column-h2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/sections/two-column-h2.js b/src/components/sections/two-column-h2.js index 2da4c0c88..e86b6a94c 100644 --- a/src/components/sections/two-column-h2.js +++ b/src/components/sections/two-column-h2.js @@ -32,7 +32,7 @@ const TwoColumnH2 = ({ myRef ); - enterCount === 1 && lottieRef.current.play(); + enterCount === 1 && lottieRef.current && lottieRef.current.play(); return (