Unverified Commit 82eb72bb authored by MARVIN's avatar MARVIN Committed by GitHub

fix(CountTo): Fix displaying empty string when the value is 0 (#864)

parent 5f1a6cdc
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
} }
function formatNumber(num: number | string) { function formatNumber(num: number | string) {
if (!num) { if (!num && num !== 0) {
return ''; return '';
} }
const { decimals, decimal, separator, suffix, prefix } = props; const { decimals, decimal, separator, suffix, prefix } = props;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment