Commit fda9d29d authored by Charles Bachmeier's avatar Charles Bachmeier Committed by GitHub

fix: prices passed in scientific notation (#5070)

fix prices passed in scientific notation
parent d74c0500
...@@ -133,7 +133,9 @@ export function useAssetsQuery( ...@@ -133,7 +133,9 @@ export function useAssetsQuery(
const assets: GenieAsset[] = data.nftAssets?.edges?.map((queryAsset: { node: any }) => { const assets: GenieAsset[] = data.nftAssets?.edges?.map((queryAsset: { node: any }) => {
const asset = queryAsset.node 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 { return {
id: asset.id, id: asset.id,
address: asset.collection.nftContracts[0]?.address, address: asset.collection.nftContracts[0]?.address,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment