diff --git a/src/components/custom/CountTo.vue b/src/components/custom/CountTo.vue index 03c08abf..73144b30 100644 --- a/src/components/custom/CountTo.vue +++ b/src/components/custom/CountTo.vue @@ -77,7 +77,7 @@ function start() { } function formatNumber(num: number | string) { - if (!num) { + if (num !== 0 && !num) { return ''; } const { decimals, decimal, separator, suffix, prefix } = props;