From a43cbe6b728f45dbb93fd8ee122acefeee168260 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 21 Sep 2024 18:22:45 +0100 Subject: [PATCH] tweak fiat decimal display --- content.md | 2 +- lib/numbers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content.md b/content.md index 6057f67..43ba378 100644 --- a/content.md +++ b/content.md @@ -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 | |----------|----------| diff --git a/lib/numbers.ts b/lib/numbers.ts index 1a1cdc0..290bab6 100644 --- a/lib/numbers.ts +++ b/lib/numbers.ts @@ -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 })