Commit a73f6aa3 authored by tom's avatar tom

address domains tooltip fixes

parent fb1e3b18
......@@ -37,6 +37,10 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
return <Skeleton h={ 8 } w={{ base: '60px', lg: '120px' }} borderRadius="base"/>;
}
if (data.items.length === 0) {
return null;
}
const mainDomain = data.items.find((domain) => domain.name === mainDomainName);
const ownedDomains = data.items.filter((domain) => {
if (domain.name === mainDomainName) {
......@@ -65,7 +69,7 @@ const AddressEnsDomains = ({ addressHash, mainDomainName }: Props) => {
domain.name !== mainDomainName,
);
const totalRecords = data.next_page_params ? '50+' : data.items.length;
const totalRecords = data.items.length > 40 ? '40+' : data.items.length;
return (
<Popover isOpen={ isOpen } onClose={ onClose } placement="bottom-start" isLazy>
......
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