Merge pull request #246 from fernandolguevara/fix-missing-event

fix(missing-event): avoid redirect
This commit is contained in:
Kieran 2023-02-10 14:57:56 +00:00 committed by GitHub
commit 5c34303569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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">