improve short format for balance credits >1K and >1M #184

Merged
akinwale merged 4 commits from format-big-credits into master 2019-08-16 16:54:39 +02:00
Showing only changes of commit 9ff085150c - Show all commits

View file

@ -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';
}