Commit bfe148bf authored by Igor Stuev's avatar Igor Stuev Committed by GitHub

Merge pull request #1306 from blockscout/nan-fix

fix nan net worth for an empty address
parents d7365d2c 6775c7f4
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment