diff --git a/ui/token/TokenPageTitle.tsx b/ui/token/TokenPageTitle.tsx index 2cc648cb53..c4a1f61c39 100644 --- a/ui/token/TokenPageTitle.tsx +++ b/ui/token/TokenPageTitle.tsx @@ -12,6 +12,7 @@ import type { ResourceError } from 'lib/api/resources'; import useApiQuery from 'lib/api/useApiQuery'; import { useAppContext } from 'lib/contexts/app'; import { getTokenTypeName } from 'lib/token/tokenTypes'; +import AddressMetadataAlert from 'ui/address/details/AddressMetadataAlert'; import AddressQrCode from 'ui/address/details/AddressQrCode'; import AccountActionsMenu from 'ui/shared/AccountActionsMenu/AccountActionsMenu'; import AddressAddToWallet from 'ui/shared/address/AddressAddToWallet'; @@ -82,7 +83,7 @@ const TokenPageTitle = ({ tokenQuery, addressQuery, hash }: Props) => { verifiedInfoQuery.data?.projectSector ? { slug: verifiedInfoQuery.data.projectSector, name: verifiedInfoQuery.data.projectSector, tagType: 'custom' as const, ordinal: -30 } : undefined, - ...(addressMetadataQuery.data?.addresses?.[hash.toLowerCase()]?.tags || []), + ...(addressMetadataQuery.data?.addresses?.[hash.toLowerCase()]?.tags.filter(tag => tag.tagType !== 'note') || []), ].filter(Boolean).sort(sortEntityTags); }, [ addressMetadataQuery.data?.addresses, @@ -133,20 +134,24 @@ const TokenPageTitle = ({ tokenQuery, addressQuery, hash }: Props) => { ); return ( - - ) : null } - contentAfter={ contentAfter } - secondRow={ secondRow } - /> + <> + + ) : null } + contentAfter={ contentAfter } + secondRow={ secondRow } + /> + { !addressMetadataQuery.isPending && + } + ); };