diff --git a/src/components/ProfileSection.tsx b/src/components/ProfileSection.tsx index d6f8a4f..b8f0092 100644 --- a/src/components/ProfileSection.tsx +++ b/src/components/ProfileSection.tsx @@ -155,7 +155,7 @@ export const Profile = ({ pubkey }: ProfileProps) => {

{displayName}

{/* Nip05 can sometimes be an empty object '{}' which causes the error */} - {typeof nip05 === 'string' && ( + {typeof nip05 === 'string' && nip05 !== '' && (

{nip05}

)}
@@ -191,7 +191,7 @@ export const Profile = ({ pubkey }: ProfileProps) => { {typeof nprofile !== 'undefined' && ( )} - {typeof lud16 !== 'undefined' && ( + {typeof lud16 !== 'undefined' && lud16 !== '' && ( )}