Skip to content

Commit

Permalink
fix: comma separate the crypto value number
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Jan 7, 2023
1 parent ab9ea4f commit 66ad2bb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export const CryptoValue = (props: Props) => {
<>{loadingContent}</>
) : (
<>
{valueToRenderFormatted || '...'}{' '}
{valueToRenderFormatted
? Number(valueToRenderFormatted).toLocaleString()
: '...'}{' '}
{showSymbol ? outputUnit || data.info?.icon || symbol : null}
{showPrice && data.price && Number(data.price) > 0 ? (
<>
Expand Down

0 comments on commit 66ad2bb

Please sign in to comment.