Skip to content

Commit

Permalink
altered syntax for stopping tracking on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksantan committed Apr 9, 2024
1 parent 74a113e commit 0eb243d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/components/gif.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const Gif = ({
// if this component goes from showing an ad to not an ad
useEffect(() => {
if (!shouldShowMedia) {
stopTracking()
return () => stopTracking()
}
}, [shouldShowMedia])

Expand Down

0 comments on commit 0eb243d

Please sign in to comment.