Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fix new nullability issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Strum355 committed Dec 15, 2022
1 parent 594cf06 commit 52df392
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,10 @@ const ExecutorSecretAccessLogNode: React.FunctionComponent<React.PropsWithChildr
<div className="d-flex justify-content-between align-items-center flex-wrap mb-0">
<PersonLink
person={{
displayName: node.user.displayName || node.user.username,
email: node.user.email,
user: {
displayName: node.user.displayName,
url: node.user.url,
username: node.user.username,
},
// empty strings are fine here, as they are only used when `user` is not null
displayName: (node.user?.displayName || node.user?.username) ?? '',
email: node.user?.email ?? '',
user: node.user,
}}
/>
<Timestamp date={node.createdAt} />
Expand Down

0 comments on commit 52df392

Please sign in to comment.