Skip to content

Commit

Permalink
Show precise Total Supply in token search result / vertical table
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed Oct 2, 2023
1 parent 056668c commit 776236f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/917.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Show precise Total Supply in token search result / vertical table
6 changes: 5 additions & 1 deletion src/app/components/Tokens/TokenDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { VerificationIcon } from '../ContractVerificationIcon'
import Box from '@mui/material/Box'
import { COLORS } from '../../../styles/theme/colors'
import { TokenTypeTag } from './TokenList'
import { getPreciseNumberFormat } from '../../../locales/getPreciseNumberFormat'

export const TokenDetails: FC<{
isLoading?: boolean
Expand Down Expand Up @@ -64,7 +65,10 @@ export const TokenDetails: FC<{
<dt>{t('tokens.totalSupply')}</dt>
<dd>
{token.total_supply
? t('tokens.totalSupplyValue', { value: token.total_supply, ticker: token.symbol })
? t('tokens.totalSupplyValue', {
...getPreciseNumberFormat(token.total_supply),
ticker: token.symbol,
})
: t('common.missing')}
</dd>
</StyledDescriptionList>
Expand Down

0 comments on commit 776236f

Please sign in to comment.