Skip to content

Commit f524154

Browse files
Apr integration (#235)
* apr integration, unbonding tokens info. * 10amount fixes.
1 parent 93024bb commit f524154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/numberFormats.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const floatCountWithoutABBRS = (value, decimals) => {
8282
return formatCountAbbr(value, false);
8383
}
8484

85-
if (parseInt(value) === value) {
85+
if (parseInt(value) === value && value < 1000) {
8686
return formatCountAbbr(value, false);
8787
}
8888

@@ -102,7 +102,7 @@ export const floatCountWithoutABBRS = (value, decimals) => {
102102
return floatDecimals(value, decimals);
103103
}
104104

105-
return floatDecimals(value, decimals || 2);
105+
return formatCountAbbr(value, true);
106106
};
107107

108108
export const truncateTo4Decimals = (num, decimals) => {

0 commit comments

Comments
 (0)