Skip to content

Commit

Permalink
Merge pull request #1306 from blockscout/nan-fix
Browse files Browse the repository at this point in the history
fix nan net worth for an empty address
  • Loading branch information
isstuev authored Oct 27, 2023
2 parents d7365d2 + 6775c7f commit bfe148b
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 bfe148b

Please sign in to comment.