diff --git a/components/ui/animated-counter.tsx b/components/ui/animated-counter.tsx index e5dc220..fb3db92 100644 --- a/components/ui/animated-counter.tsx +++ b/components/ui/animated-counter.tsx @@ -21,8 +21,8 @@ export function AnimatedCounter({ value }: { value: number }) { } function Digit({ place, value }: { place: number; value: number }) { - let valueRoundedToPlace = Math.floor(value / place); - let animatedValue = useSpring(valueRoundedToPlace); + const valueRoundedToPlace = Math.floor(value / place); + const animatedValue = useSpring(valueRoundedToPlace); useEffect(() => { animatedValue.set(valueRoundedToPlace); @@ -30,7 +30,7 @@ function Digit({ place, value }: { place: number; value: number }) { return (