Skip to content

Commit

Permalink
Fix a small regression in displaying account names
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Jan 14, 2025
1 parent 1d6eca6 commit fed63ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changelog/1687.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a small regression in displaying account names
2 changes: 1 addition & 1 deletion src/app/components/Account/AccountLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const AccountLink: FC<Props> = ({
// 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 ? (
Expand Down

0 comments on commit fed63ce

Please sign in to comment.