Skip to content

Commit bcd42ea

Browse files
authored
Show small ERC-20 token balance instead of zero (#3264)
Resolves #1942
1 parent 724c38c commit bcd42ea

6 files changed

+1
-1
lines changed

ui/address/tokenSelect/TokenSelectItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const TokenSelectItem = ({ data }: Props) => {
3939

4040
if (isFungibleToken) {
4141
const tokenDecimals = Number(data.token.decimals ?? 18);
42-
const text = `${ BigNumber(data.value).dividedBy(10 ** tokenDecimals).dp(8).toFormat() } ${ data.token.symbol || '' }`;
42+
const text = `${ BigNumber(data.value).dividedBy(10 ** tokenDecimals).toFormat() } ${ data.token.symbol || '' }`;
4343

4444
return (
4545
<>
60 Bytes
Loading
51 Bytes
Loading
56 Bytes
Loading
52 Bytes
Loading
50 Bytes
Loading

0 commit comments

Comments
 (0)