mirror of
https://gitea.gf4.pw/gf4/haveno-markets.git
synced 2024-11-23 02:27:38 -07:00
fix priceFormat when price is 0
This commit is contained in:
parent
3067e76c28
commit
ab06a7bdf3
@ -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 New Issue
Block a user