Skip to content

Commit

Permalink
Token view horizontal view: fix formatting of total supply
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jul 2, 2023
1 parent 32f387c commit c918eca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/components/Tokens/TokenDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { TokenLink } from './TokenLink'
import { CopyToClipboard } from '../CopyToClipboard'
import { AccountLink } from '../Account/AccountLink'
import { DashboardLink } from '../../pages/ParatimeDashboardPage/DashboardLink'
import { LongDataDisplay } from '../LongDataDisplay'
import { DelayedContractVerificationInfo } from '../Account/ContractVerificationInfo'
import Box from '@mui/material/Box'
import { COLORS } from '../../../styles/theme/colors'
Expand Down Expand Up @@ -62,7 +61,9 @@ export const TokenDetails: FC<{

<dt>{t('tokens.totalSupply')}</dt>
<dd>
<LongDataDisplay data={token.total_supply || t('common.missing')} threshold={100} fontWeight={400} />
{token.total_supply
? t('tokens.totalSupplyValue', { value: token.total_supply })
: t('common.missing')}
</dd>
</StyledDescriptionList>
)
Expand Down

0 comments on commit c918eca

Please sign in to comment.