diff --git a/src/app/users/components/profile.tsx b/src/app/users/components/profile.tsx index 323dc4c0..a1e2e21b 100644 --- a/src/app/users/components/profile.tsx +++ b/src/app/users/components/profile.tsx @@ -21,8 +21,8 @@ export function UserProfile({ pubkey }: { pubkey: string }) { const { user } = useProfile(pubkey); const [followed, setFollowed] = useState(false); - const navigate = useNavigate(); + const navigate = useNavigate(); const svgURI = 'data:image/svg+xml;utf8,' + encodeURIComponent(minidenticon(pubkey, 90, 50)); @@ -78,9 +78,9 @@ export function UserProfile({ pubkey }: { pubkey: string }) { return ( <>
{user.about || user.bio}
diff --git a/src/shared/nip05.tsx b/src/shared/nip05.tsx index 45f5164f..e9cc7ee9 100644 --- a/src/shared/nip05.tsx +++ b/src/shared/nip05.tsx @@ -39,7 +39,6 @@ export const NIP05 = memo(function NIP05({ if (!res.ok) throw new Error(`Failed to fetch NIP-05 service: ${nip05}`); const data: NIP05 = await res.json(); - if (data.names) { if (data.names[localPath] !== pubkey) return false; return true; diff --git a/src/shared/user.tsx b/src/shared/user.tsx index e2b1a0c5..693d1d07 100644 --- a/src/shared/user.tsx +++ b/src/shared/user.tsx @@ -222,7 +222,7 @@ export const User = memo(function User({ {user?.name || user?.display_name || user?.displayName}- {user?.nip05 || user?.username || displayNpub(pubkey, 16)} + {user?.username || displayNpub(pubkey, 16)}