From 1af33e2cc67b3c329c2523ed42063d57da2b5a90 Mon Sep 17 00:00:00 2001 From: Alex Perry Date: Mon, 2 Dec 2024 13:56:09 +0100 Subject: [PATCH] feat: adds BNS punycode support gobally --- src/app/common/hooks/account/use-account-names.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/common/hooks/account/use-account-names.ts b/src/app/common/hooks/account/use-account-names.ts index dd4d1dc4a9..d10a54ff83 100644 --- a/src/app/common/hooks/account/use-account-names.ts +++ b/src/app/common/hooks/account/use-account-names.ts @@ -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) + ); }, });