Skip to content

Commit

Permalink
333 Adds fallback for values that are possibly undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardovdheijden committed Apr 4, 2024
1 parent 1aa5b8f commit 352bc43
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export const WfoCustomerDescriptionsField: FC<
return (
<div>
{customerDescriptionsWithName.map(
({ shortcode, fullname, description }) => (
({ shortcode, fullname, description, customerId }) => (
<div
key={shortcode}
title={fullname}
>{`${shortcode}: ${description}`}</div>
key={customerId}
title={fullname ?? customerId}
>{`${shortcode ?? customerId}: ${description}`}</div>
),
)}
</div>
Expand Down

0 comments on commit 352bc43

Please sign in to comment.