diff --git a/.changelog/1687.bugfix.md b/.changelog/1687.bugfix.md new file mode 100644 index 000000000..2ab268147 --- /dev/null +++ b/.changelog/1687.bugfix.md @@ -0,0 +1 @@ +Fix a small regression in displaying account names diff --git a/src/app/components/Account/AccountLink.tsx b/src/app/components/Account/AccountLink.tsx index 58196c56c..d189f5c10 100644 --- a/src/app/components/Account/AccountLink.tsx +++ b/src/app/components/Account/AccountLink.tsx @@ -95,7 +95,7 @@ export const AccountLink: FC = ({ // isError, // Use this to indicate that we have failed to load the name for this account } = useAccountMetadata(scope, address) const accountName = accountMetadata?.name // TODO: we should also use the description - const showAccountName = !showAddressAsName && accountName + const showAccountName = !!showAddressAsName && !!accountName const to = RouteUtils.getAccountRoute(scope, address) const extraTooltipWithIcon = extraTooltip ? (