From 6691908fc44f0392f8baaa0a57f227fe1265b457 Mon Sep 17 00:00:00 2001 From: Siddharth Singh Date: Tue, 6 Aug 2024 00:20:58 +0530 Subject: [PATCH] typo --- src/utils/og-metadata.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils/og-metadata.ts b/src/utils/og-metadata.ts index db0b6b06..c6df021e 100644 --- a/src/utils/og-metadata.ts +++ b/src/utils/og-metadata.ts @@ -106,7 +106,6 @@ function truncate(s: string, len: number, ellipsis = '…') { * @returns The handle */ export async function getHandle(id: string, acc?: ProfileInfo) { - console.debug({ id, name }); let handle: string | undefined = ''; const handlePubkey = async (pubkey: string) => { @@ -122,7 +121,7 @@ export async function getHandle(id: string, acc?: ProfileInfo) { }; if (/[a-z0-9]{64}/.test(id)) { - await handlePubkey(id); + handle = await handlePubkey(id); } else if (n.bech32().safeParse(id).success) { if (id.startsWith('npub')) { handle = await handlePubkey(nip19.decode(id as `npub1${string}`).data);