Skip to content

Commit

Permalink
First iteration of fixing missing link in translate view
Browse files Browse the repository at this point in the history
  • Loading branch information
ayanaar committed Dec 13, 2023
1 parent 4ba3341 commit f8c8630
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions translate/src/modules/user/components/UserNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ const Comment = ({
<span className='actor'>{actor.anchor}</span>

<span className='verb'>
<a href={target.url}>{verb}</a>
{target ? (
<a href={target.url}>{verb}</a>
) : (
verb.replace('has added a comment in', 'has added a comment')
)}
</span>

<span className='target'>{target.anchor}</span>
{target ? <span className='target'>{target.anchor}</span> : null}

<ReactTimeAgo
className='timeago'
Expand Down

0 comments on commit f8c8630

Please sign in to comment.