testing again
This commit is contained in:
parent
ff6ebb349e
commit
d820d33af0
@ -7,7 +7,7 @@ import { type NDKUserProfile } from "@nostr-dev-kit/ndk";
|
|||||||
|
|
||||||
export default function useProfile(key: string) {
|
export default function useProfile(key: string) {
|
||||||
const { ndk, getProfile } = useNDK();
|
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(() => {
|
useEffect(() => {
|
||||||
if (!ndk) return;
|
if (!ndk) return;
|
||||||
if (NOSTR_BECH32_REGEXP.test(key)) {
|
if (NOSTR_BECH32_REGEXP.test(key)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user