From fed63ce9cc44f8fbf9d6027253fcb460ed185c86 Mon Sep 17 00:00:00 2001 From: Kristof Csillag Date: Tue, 14 Jan 2025 03:45:48 +0100 Subject: [PATCH] Fix a small regression in displaying account names --- .changelog/1687.bugfix.md | 1 + src/app/components/Account/AccountLink.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .changelog/1687.bugfix.md 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 ? (