From d820d33af05d0b35e1a316c6fe2685abf8416de1 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Wed, 8 May 2024 06:51:50 -0400 Subject: [PATCH] testing again --- lib/hooks/useProfile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hooks/useProfile.ts b/lib/hooks/useProfile.ts index 2d6b1b9..87b75f2 100644 --- a/lib/hooks/useProfile.ts +++ b/lib/hooks/useProfile.ts @@ -7,7 +7,7 @@ import { type NDKUserProfile } from "@nostr-dev-kit/ndk"; export default function useProfile(key: string) { const { ndk, getProfile } = useNDK(); - const npub = NOSTR_BECH32_REGEXP.test(key) ? nip19.npubEncode(key) : key; + const npub = key.length === 64 ? nip19.npubEncode(key) : key; useEffect(() => { if (!ndk) return; if (NOSTR_BECH32_REGEXP.test(key)) {