Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: #140 fixed number ticker issue (#249)

Lakshya-moghaba8357055666
diff --git a/registry/components/magicui/number-ticker.tsx b/registry/components/magicui/number-ticker.tsx
index 7577729b..f0dc6188 100644
--- a/registry/components/magicui/number-ticker.tsx
+++ b/registry/components/magicui/number-ticker.tsx
@@ -36,7 +36,7 @@ export default function NumberTicker({
springValue.on("change", (latest) => {
if (ref.current) {
ref.current.textContent = Intl.NumberFormat("en-US").format(
- latest.toFixed(0),
+ Number(latest.toFixed(0)),
);
}
}),