mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 23:27:54 +03:00
Use uppercase M for million
This commit is contained in:
parent
1ec4dca33f
commit
54aaeb2ae0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user