Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
useArtistCoin,
useCoinGeckoCoin,
useUser,
type CoinGeckoCoinResponse
} from '@audius/common/api'
import { coinDetailsMessages } from '@audius/common/messages'
Expand All @@ -20,6 +21,7 @@ import { env } from 'services/env'
import { TokenIcon } from '../../../components/buy-sell-modal/TokenIcon'
import ResponsiveModal from '../../../components/modal/ResponsiveModal'
import { TokenInfoRow } from '../../artist-coins-launchpad-page/components/TokenInfoRow'
import { LAUNCHPAD_COIN_DESCRIPTION } from '../../artist-coins-launchpad-page/constants'

const { artistCoinDetails } = coinDetailsMessages

Expand All @@ -46,6 +48,9 @@ export const ArtistCoinDetailsModal = ({
const isAudio = mint === env.WAUDIO_MINT_ADDRESS
const { spacing } = useTheme()
const { data: artistCoin } = useArtistCoin(mint)
const { data: artistHandle } = useUser(artistCoin?.ownerId, {
select: (user) => user.handle
})
const { data: coingeckoResponse } = useCoinGeckoCoin(
{ coinId: 'audius' },
{ enabled: isAudio }
Expand Down Expand Up @@ -102,13 +107,13 @@ export const ArtistCoinDetailsModal = ({
) : null}

{/* On-Chain Description */}
{artistCoin?.description ? (
{artistCoin?.ticker && artistHandle ? (
<Flex direction='column' gap='xs' w='100%'>
<Text variant='body' size='m' strength='strong' color='subdued'>
{artistCoinDetails.onChainDescription}
</Text>
<Text variant='body' size='m' userSelect='text'>
{artistCoin.description}
{LAUNCHPAD_COIN_DESCRIPTION(artistHandle, artistCoin.ticker)}
</Text>
</Flex>
) : null}
Expand Down