Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Use uppercase M for million

Uku Taht54aaeb2ae00c
diff --git a/assets/js/dashboard/number-formatter.js b/assets/js/dashboard/number-formatter.js
index a611df2c70..8496ab632b 100644
--- a/assets/js/dashboard/number-formatter.js
+++ b/assets/js/dashboard/number-formatter.js
@@ -14,9 +14,9 @@ export default function numberFormatter(num) {
} else if (num >= MILLION && num < HUNDRED_MILLION) {
const millions = num / MILLION
if (millions === Math.floor(millions)) {
- return Math.floor(millions) + 'm'
+ return Math.floor(millions) + 'M'
} else {
- return (Math.floor(millions * 10) / 10) + 'm'
+ return (Math.floor(millions * 10) / 10) + 'M'
}
} else {
return num