From 9618bb518a882e382ce3837cfd8aa05d86ee9b76 Mon Sep 17 00:00:00 2001 From: tom Date: Thu, 28 Dec 2023 12:17:43 +0400 Subject: [PATCH] exceeded domain num in search results --- ui/searchResults/SearchResultListItem.tsx | 2 +- ui/searchResults/SearchResultTableItem.tsx | 2 +- .../searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/searchResults/SearchResultListItem.tsx b/ui/searchResults/SearchResultListItem.tsx index fe55b025c9..340f753219 100644 --- a/ui/searchResults/SearchResultListItem.tsx +++ b/ui/searchResults/SearchResultListItem.tsx @@ -276,7 +276,7 @@ const SearchResultListItem = ({ data, searchTerm, isLoading }: Props) => { { data.ens_info && ( data.ens_info.names_count > 1 ? - (+{ data.ens_info.names_count - 1 }) : + ({ data.ens_info.names_count > 39 ? '40+' : `+${ data.ens_info.names_count - 1 }` }) : { expiresText } ) } diff --git a/ui/searchResults/SearchResultTableItem.tsx b/ui/searchResults/SearchResultTableItem.tsx index 7c4facffaa..660c77d2f9 100644 --- a/ui/searchResults/SearchResultTableItem.tsx +++ b/ui/searchResults/SearchResultTableItem.tsx @@ -129,7 +129,7 @@ const SearchResultTableItem = ({ data, searchTerm, isLoading }: Props) => { { data.ens_info && ( data.ens_info.names_count > 1 ? - (+{ data.ens_info.names_count - 1 }) : + ({ data.ens_info.names_count > 39 ? '40+' : `+${ data.ens_info.names_count - 1 }` }) : { expiresText } ) } diff --git a/ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx b/ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx index bd85b636bd..0a69e99525 100644 --- a/ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx +++ b/ui/snippets/searchBar/SearchBarSuggest/SearchBarSuggestAddress.tsx @@ -44,7 +44,7 @@ const SearchBarSuggestAddress = ({ data, isMobile, searchTerm }: Props) => { { data.ens_info && ( data.ens_info.names_count > 1 ? - (+{ data.ens_info.names_count - 1 }) : + ({ data.ens_info.names_count > 39 ? '40+' : `+${ data.ens_info.names_count - 1 }` }) : { expiresText } ) }