diff --git a/frontend/src/components/AnimatedCounter.tsx b/frontend/src/components/AnimatedCounter.tsx index 8913636ba0..d41cb8bb87 100644 --- a/frontend/src/components/AnimatedCounter.tsx +++ b/frontend/src/components/AnimatedCounter.tsx @@ -1,4 +1,5 @@ import { useEffect, useRef, useState } from 'react' +import millify from "millify" interface AnimatedCounterProps { className?: string @@ -30,5 +31,5 @@ export default function AnimatedCounter({ end, duration, className }: AnimatedCo requestAnimationFrame(animate) }, [end, duration]) - return {count} + return {millify(count)} }