improve short format for balance credits >1K and >1M #184
1 changed files with 1 additions and 2 deletions
|
@ -7,8 +7,7 @@ export function formatCredits(amount, precision, shortFormat = false) {
|
|||
if (actualAmount >= 1000000) {
|
||||
actualAmount = actualAmount / 1000000;
|
||||
suffix = 'M';
|
||||
}
|
||||
if (actualAmount >= 1000) {
|
||||
} else if (actualAmount >= 1000) {
|
||||
actualAmount = actualAmount / 1000;
|
||||
suffix = 'K';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue