Skip to content

Commit

Permalink
Merge pull request #349 from celestiaorg/feature/lottie-anim
Browse files Browse the repository at this point in the history
fix: conditional anim play
  • Loading branch information
sragabor authored Jan 12, 2024
2 parents 339422a + 668ad09 commit 34cc56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/sections/two-column-h2.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const TwoColumnH2 = ({
myRef
);

enterCount === 1 && lottieRef.current.play();
enterCount === 1 && lottieRef.current && lottieRef.current.play();

return (
<section className={`two-column-h2 ${direction}`} ref={myRef} >
Expand Down

0 comments on commit 34cc56d

Please sign in to comment.