diff --git a/components/charts/RankingsChart.js b/components/charts/RankingsChart.js
index 89de63a3..be73be97 100644
--- a/components/charts/RankingsChart.js
+++ b/components/charts/RankingsChart.js
@@ -58,7 +58,7 @@ export default function RankingsChart({
const { x, y, z } = rankings[index];
return (
);
};
@@ -108,7 +108,7 @@ export default function RankingsChart({
);
}
-const AnimatedRow = ({ label, value, percent, animate, format }) => {
+const AnimatedRow = ({ label, value = 0, percent, animate, format }) => {
const props = useSpring({
width: percent,
y: value,
@@ -119,7 +119,7 @@ const AnimatedRow = ({ label, value, percent, animate, format }) => {
return (
{label}
-
{props.y.interpolate(format)}
+
{props.y?.interpolate(format)}
= 1000000) {
return `${(n / 1000000).toFixed(1)}m`;
}
@@ -57,5 +59,6 @@ export function formatLongNumber(n) {
if (n >= 1000) {
return `${(n / 1000).toFixed(2)}k`;
}
+
return formatNumber(n);
}
diff --git a/package.json b/package.json
index 4f494e65..dc2c4b8a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "umami",
- "version": "0.10.2",
+ "version": "0.10.3",
"description": "A simple, fast, website analytics alternative to Google Analytics. ",
"author": "Mike Cao ",
"license": "MIT",