Skip to content

Commit

Permalink
feat: adds BNS punycode support gobally
Browse files Browse the repository at this point in the history
  • Loading branch information
alexp3y committed Dec 2, 2024
1 parent 91cf37f commit 1af33e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/common/hooks/account/use-account-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ export function useAccountDisplayName({ address, index }: { index: number; addre
}),
select: resp => {
const names = resp.names ?? [];
return formatAccountName(names[0]) || getAutogeneratedAccountDisplayName(index);
return (
parseIfValidPunycode(formatAccountName(names[0])) ||
getAutogeneratedAccountDisplayName(index)
);
},
});

Expand Down

0 comments on commit 1af33e2

Please sign in to comment.