Skip to content

Commit

Permalink
Fix missing price for free mints
Browse files Browse the repository at this point in the history
  • Loading branch information
ted-palmer committed Apr 9, 2024
1 parent ec6edb4 commit a6d7b90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/rankings/MintRankingsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const RankingsTableRow: FC<RankingsTableRowProps> = ({ mint, rank }) => {
return optimizeImage(mint?.image || mint?.sampleImages?.[0], 250)
}, [mint.image])

const mintPrice = mint.mintPrice?.toString()
const mintPrice = mint.mintPrice

const sampleImages: string[] = mint?.sampleImages || []

Expand Down Expand Up @@ -217,7 +217,7 @@ const RankingsTableRow: FC<RankingsTableRowProps> = ({ mint, rank }) => {
justify="start"
css={{ height: '100%' }}
>
{mintPrice !== '0' ? (
{mintPrice ? (
<FormatCryptoCurrency
amount={mintPrice}
textStyle="subtitle1"
Expand Down

0 comments on commit a6d7b90

Please sign in to comment.