feat: localize token supply number (#18654)

This commit is contained in:
Josh 2021-07-13 21:09:44 -07:00 committed by GitHub
parent 278a6917f9
commit 74b29c0b6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -118,8 +118,11 @@ function MintAccountCard({
{info.mintAuthority === null ? "Fixed Supply" : "Current Supply"} {info.mintAuthority === null ? "Fixed Supply" : "Current Supply"}
</td> </td>
<td className="text-lg-right"> <td className="text-lg-right">
{normalizeTokenAmount(info.supply, info.decimals).toFixed( {normalizeTokenAmount(info.supply, info.decimals).toLocaleString(
info.decimals "en-US",
{
minimumFractionDigits: info.decimals,
}
)} )}
</td> </td>
</tr> </tr>