mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Lint and changelog.
This commit is contained in:
parent
4cebf12bb5
commit
683651e75d
@ -149,10 +149,10 @@ function shortenBalance (balance, decimalsToKeep = 1) {
|
|||||||
return '0'
|
return '0'
|
||||||
} else if (convertedBalance < 0.001) {
|
} else if (convertedBalance < 0.001) {
|
||||||
return '<0.001'
|
return '<0.001'
|
||||||
} else if (convertedBalance < 1) {
|
} else if (convertedBalance < 1) {
|
||||||
var stringBalance = convertedBalance.toString()
|
var stringBalance = convertedBalance.toString()
|
||||||
if (stringBalance.split('.')[1].length > 3) {
|
if (stringBalance.split('.')[1].length > 3) {
|
||||||
return convertedBalance.toFixed(3);
|
return convertedBalance.toFixed(3)
|
||||||
} else {
|
} else {
|
||||||
return stringBalance
|
return stringBalance
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user