Commit 6775c7f4 authored by isstuev's avatar isstuev

fix nan net worth for an empty address

parent 7fb7b12a
...@@ -63,7 +63,10 @@ const WatchListAddressItem = ({ item, isLoading }: { item: WatchlistAddress; isL ...@@ -63,7 +63,10 @@ const WatchListAddressItem = ({ item, isLoading }: { item: WatchlistAddress; isL
<Icon boxSize={ 5 } as={ WalletIcon } isLoading={ isLoading }/> <Icon boxSize={ 5 } as={ WalletIcon } isLoading={ isLoading }/>
<Skeleton isLoaded={ !isLoading } display="inline-flex"> <Skeleton isLoaded={ !isLoading } display="inline-flex">
<Text>{ `Net worth:${ nbsp }` } <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> </Text>
</Skeleton> </Skeleton>
</HStack> </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