tweak fiat decimal display

This commit is contained in:
Matthias Kretschmann 2024-09-21 18:22:45 +01:00
parent 1968d43460
commit a43cbe6b72
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ You can find more reasoning about the token merge in every team's announcement p
- [SingularityNET: Introducing the Artificial Superintelligence Alliance](https://blog.singularitynet.io/introducing-the-artificial-superintelligence-alliance-40a4dea01e62)
- [CUDOS: Artificial Superintelligence Alliance Proposes Addition of Cloud Compute Infrastructure Provider CUDOS](https://www.cudos.org/blog/artificial-superintelligence-alliance-proposes-addition-of-cloud-compute)
### Community Proposals
### Governance Proposals
| Proposal | Status |
|----------|----------|

View File

@ -9,7 +9,7 @@ export function formatCrypto(price: number, currency: string, locale: string) {
export function formatFiat(price: number, currency: string, locale: string) {
let formattedPrice = formatCurrency(price, currency, locale, false, {
decimalPlaces: 2,
decimalPlaces: price < 1 ? 6 : 2,
significantFigures: 8
})