From f698806b8284d2d49598a42998b279ebd7445045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Lo=CC=81pez=20Guevara?= Date: Thu, 16 Feb 2023 14:19:40 -0300 Subject: [PATCH] fix(profile): convert page id to npub bech32 --- packages/app/src/Pages/ProfilePage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/app/src/Pages/ProfilePage.tsx b/packages/app/src/Pages/ProfilePage.tsx index 580259d09..62bac9224 100644 --- a/packages/app/src/Pages/ProfilePage.tsx +++ b/packages/app/src/Pages/ProfilePage.tsx @@ -75,6 +75,8 @@ export default function ProfilePage() { users: new Map(), creator: "", }); + const npub = !id.startsWith("npub") ? hexToBech32("npub", id || undefined) : id; + const lnurl = extractLnAddress(user?.lud16 || user?.lud06 || ""); const website_url = user?.website && !user.website.startsWith("http") ? "https://" + user.website : user?.website || ""; @@ -121,7 +123,7 @@ export default function ProfilePage() { {user?.nip05 && } - + {links()} );