Skip to content

Commit

Permalink
fix nan net worth for an empty address
Browse files Browse the repository at this point in the history
  • Loading branch information
ArminaAiren committed Oct 25, 2023
1 parent 7fb7b12 commit 6775c7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ const WatchListAddressItem = ({ item, isLoading }: { item: WatchlistAddress; isL
<Icon boxSize={ 5 } as={ WalletIcon } isLoading={ isLoading }/>
<Skeleton isLoaded={ !isLoading } display="inline-flex">
<Text>{ `Net worth:${ nbsp }` }
{ `${ item.tokens_overflow ? '>' : '' }$${ BigNumber(item.tokens_fiat_value).plus((BigNumber(usdNative ? usdNative : '0'))).toFormat(2) }` }
{
`${ item.tokens_overflow ? '>' : '' }
$${ BigNumber(item.tokens_fiat_value).plus((BigNumber(item.address_balance ? usdNative : '0'))).toFormat(2) }`
}
</Text>
</Skeleton>
</HStack>
Expand Down

0 comments on commit 6775c7f

Please sign in to comment.