Fixed bug with rankings display.
This commit is contained in:
@@ -44,7 +44,9 @@ export function formatNumber(n) {
|
||||
return Number(n).toFixed(0);
|
||||
}
|
||||
|
||||
export function formatLongNumber(n) {
|
||||
export function formatLongNumber(value) {
|
||||
const n = Number(value);
|
||||
|
||||
if (n >= 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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user