Skip to content

Commit

Permalink
Update homepage to use decimal instead of native for mint price
Browse files Browse the repository at this point in the history
  • Loading branch information
ted-palmer committed Jul 22, 2023
1 parent 1c091b2 commit 0159849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/home/CollectionTopSellingTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const AllSalesTableRow: FC<CollectionTableRowProps> = ({
const mintData = collection?.mintStages?.find(
(stage) => stage.kind === 'public'
)
const mintPrice = mintData?.price.amount?.native || 0
const mintPrice = mintData?.price.amount?.decimal || 0
const floorAsk = collection?.floorAsk?.price?.amount?.native || 0

const { routePrefix } = useMarketplaceChain()
Expand Down Expand Up @@ -530,7 +530,7 @@ const MintTableRow: FC<CollectionTableRowProps> = ({
const mintData = collection?.mintStages?.find(
(stage) => stage.kind === 'public'
)
const mintPrice = mintData?.price.amount?.native || 0
const mintPrice = mintData?.price.amount?.decimal || 0

const collectionImage = useMemo(() => {
return optimizeImage(topSellingCollection?.image as string, 250)
Expand Down

0 comments on commit 0159849

Please sign in to comment.