mirror of
https://github.com/kremalicious/asi-calculator.git
synced 2024-12-22 09:23:16 +01:00
parent
4b2138bca3
commit
3b6274d9af
@ -2,7 +2,6 @@ import { TokenLogo } from '@/components'
|
|||||||
import { useLocale } from '@/features/prices'
|
import { useLocale } from '@/features/prices'
|
||||||
import { formatCrypto, formatFiat } from '@/lib'
|
import { formatCrypto, formatFiat } from '@/lib'
|
||||||
import type { Token } from '@/types'
|
import type { Token } from '@/types'
|
||||||
import { ArrowRightIcon } from '@radix-ui/react-icons'
|
|
||||||
import styles from './Result.module.css'
|
import styles from './Result.module.css'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -3,7 +3,7 @@ import { formatCurrency } from '@coingecko/cryptoformat'
|
|||||||
export function formatCrypto(price: number, currency: string, locale: string) {
|
export function formatCrypto(price: number, currency: string, locale: string) {
|
||||||
return formatCurrency(price, currency, locale, false, {
|
return formatCurrency(price, currency, locale, false, {
|
||||||
decimalPlaces: 3,
|
decimalPlaces: 3,
|
||||||
significantFigures: 1
|
significantFigures: 5
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user