mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Merge pull request #1306 from blockscout/nan-fix
fix nan net worth for an empty address
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user