From fda9d29d5e960192211464cac37f8296e687e665 Mon Sep 17 00:00:00 2001 From: Charles Bachmeier Date: Wed, 2 Nov 2022 13:48:02 -0700 Subject: [PATCH] fix: prices passed in scientific notation (#5070) fix prices passed in scientific notation --- src/graphql/data/nft/Asset.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphql/data/nft/Asset.ts b/src/graphql/data/nft/Asset.ts index 35fbe4691c..1f0b70cbda 100644 --- a/src/graphql/data/nft/Asset.ts +++ b/src/graphql/data/nft/Asset.ts @@ -133,7 +133,9 @@ export function useAssetsQuery( const assets: GenieAsset[] = data.nftAssets?.edges?.map((queryAsset: { node: any }) => { const asset = queryAsset.node - const ethPrice = parseEther(asset.listings?.edges[0]?.node.price.value?.toString() ?? '0').toString() + const ethPrice = parseEther( + asset.listings?.edges[0]?.node.price.value?.toLocaleString('fullwide', { useGrouping: false }) ?? '0' + ).toString() return { id: asset.id, address: asset.collection.nftContracts[0]?.address,