Skip to content

Commit

Permalink
fix: change request rendering issue when author no longer belongs to …
Browse files Browse the repository at this point in the history
…organisation (#3087)
  • Loading branch information
matthewelwell committed Dec 14, 2023
1 parent 5914860 commit 8087fe2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/web/components/pages/ChangeRequestPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,10 @@ const ChangeRequestsPage = class extends Component {
{moment(changeRequest.created_at).format(
'Do MMM YYYY HH:mma',
)}{' '}
by {changeRequest.user && user.first_name}{' '}
{user && user.last_name}
by{' '}
{user
? `${user.first_name} ${user.last_name}`
: 'Unknown user'}
</PageTitle>
<p className='mt-2'>{changeRequest.description}</p>
<div className='row'>
Expand Down

0 comments on commit 8087fe2

Please sign in to comment.