From 73af3213508dcb4685dce3462088a244ab4f1ca7 Mon Sep 17 00:00:00 2001 From: Yoginth Date: Sat, 14 Dec 2024 16:12:08 +0530 Subject: [PATCH] Migrate to Lens v3 --- packages/helpers/getAccount.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/helpers/getAccount.ts b/packages/helpers/getAccount.ts index acefb47a2c70..baca7b5a15d8 100644 --- a/packages/helpers/getAccount.ts +++ b/packages/helpers/getAccount.ts @@ -1,4 +1,5 @@ import type { Account } from "@hey/indexer"; +import formatAddress from "./formatAddress"; import sanitizeDisplayName from "./sanitizeDisplayName"; const getAccount = ( @@ -24,7 +25,8 @@ const getAccount = ( } const prefix = account.username ? "@" : "#"; - const username = account.username?.localName || account.address; + const username = + account.username?.localName || formatAddress(account.address); const link = account.username ? `/u/${account.username.localName}` : `/account/${account.address}`;