LP-5687: add a dash to the achievement card if the description is empty
This commit is contained in:
parent
23bffe57f7
commit
b6c2a3b6f8
@ -72,7 +72,7 @@ const AllBadgesRow: React.FC<Props> = ({badge, onClick}: Props) => {
|
||||
/>
|
||||
</span>
|
||||
{' '}
|
||||
{markdown(badge.description)}
|
||||
{badge.description ? markdown(badge.description) : '—'}
|
||||
</div>
|
||||
<div className='badge-meta'>
|
||||
<FormattedMessage
|
||||
|
||||
@ -163,7 +163,7 @@ class BadgeDetailsComponent extends React.PureComponent<Props, State> {
|
||||
/>
|
||||
</span>
|
||||
{' '}
|
||||
{markdown(badge.description)}
|
||||
{badge.description ? markdown(badge.description) : '—'}
|
||||
</div>
|
||||
<div className='badge-meta'>
|
||||
<FormattedMessage
|
||||
|
||||
@ -140,7 +140,7 @@ const UserBadgeRow: React.FC<Props> = ({badge, onClick, isCurrentUser, currentUs
|
||||
/>
|
||||
</span>
|
||||
{' '}
|
||||
{markdown(badge.description)}
|
||||
{badge.description ? markdown(badge.description) : '—'}
|
||||
</div>
|
||||
<div className='user-badge-meta'>
|
||||
<FormattedMessage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user