mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 01:13:17 +01:00
tweak fiat decimal display
This commit is contained in:
parent
1968d43460
commit
a43cbe6b72
@ -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)
|
- [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)
|
- [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 |
|
| Proposal | Status |
|
||||||
|----------|----------|
|
|----------|----------|
|
||||||
|
@ -9,7 +9,7 @@ export function formatCrypto(price: number, currency: string, locale: string) {
|
|||||||
|
|
||||||
export function formatFiat(price: number, currency: string, locale: string) {
|
export function formatFiat(price: number, currency: string, locale: string) {
|
||||||
let formattedPrice = formatCurrency(price, currency, locale, false, {
|
let formattedPrice = formatCurrency(price, currency, locale, false, {
|
||||||
decimalPlaces: 2,
|
decimalPlaces: price < 1 ? 6 : 2,
|
||||||
significantFigures: 8
|
significantFigures: 8
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user