testing again

This commit is contained in:
zmeyer44 2024-05-08 06:51:50 -04:00
parent ff6ebb349e
commit d820d33af0

View File

@ -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)) {