From 6775c7f4ee802ff4d65ebea54581221cdba120b5 Mon Sep 17 00:00:00 2001 From: isstuev Date: Wed, 25 Oct 2023 13:34:46 +0200 Subject: [PATCH] fix nan net worth for an empty address --- ui/watchlist/WatchlistTable/WatchListAddressItem.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/watchlist/WatchlistTable/WatchListAddressItem.tsx b/ui/watchlist/WatchlistTable/WatchListAddressItem.tsx index 1f687c8885..e3e68c130e 100644 --- a/ui/watchlist/WatchlistTable/WatchListAddressItem.tsx +++ b/ui/watchlist/WatchlistTable/WatchListAddressItem.tsx @@ -63,7 +63,10 @@ const WatchListAddressItem = ({ item, isLoading }: { item: WatchlistAddress; isL { `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) }` + }