mirror of
https://gitea.gf4.pw/gf4/haveno-markets.git
synced 2024-12-22 16:19:22 +00:00
fix priceFormat when price is 0
This commit is contained in:
parent
3067e76c28
commit
ab06a7bdf3
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ const getSignificantDigits = (price) => {
|
|||
for (; i < 20; i++) {
|
||||
if (Math.floor(avg * 10 ** i) >= 1000) break;
|
||||
}
|
||||
if (i <= 1) i = 2;
|
||||
if (i <= 1 || avg == 0) i = 2;
|
||||
return i;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue