fix(missing-event): avoid redirect

This commit is contained in:
Fernando López Guevara 2023-02-10 10:14:40 -03:00
parent 7343e49fa8
commit d9dffa8f20
1 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,10 @@ export default function ProfileImage({
return getDisplayName(user, pubkey);
}, [user, pubkey]);
if (!pubkey && !link) {
link = "#";
}
return (
<div className={`pfp${className ? ` ${className}` : ""}`}>
<div className="avatar-wrapper">