mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Fixed empty member names in comments
refs https://github.com/TryGhost/Team/issues/1681 Default to 'Anonymous' for members without a name. Still need some UI to ask for a name.
This commit is contained in:
parent
fc3f091e2d
commit
a0eb8af4ac
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ const Comment = (props) => {
|
|||
<div className="flex justify-start items-center">
|
||||
<Avatar comment={comment} saturation={avatarSaturation} />
|
||||
<div className="ml-3">
|
||||
<h4 className="text-lg font-sans font-semibold mb-1 tracking-tight dark:text-[rgba(255,255,255,0.85)]">{comment.member.name}</h4>
|
||||
<h4 className="text-lg font-sans font-semibold mb-1 tracking-tight dark:text-[rgba(255,255,255,0.85)]">{comment.member.name ? comment.member.name : 'Anonymous'}</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div className={`ml-14 mb-4 pr-4 font-sans leading-normal ${isNotPublished ? 'text-neutral-400' : 'text-neutral-900'} dark:text-[rgba(255,255,255,0.85)]`}>
|
||||
|
|
Loading…
Add table
Reference in a new issue