Skip to content

Commit

Permalink
fix: null location contact surname bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanoshadjipetrou committed Nov 3, 2023
1 parent 90962cb commit 780aab2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/controllers/location.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@ export class LocationController {
url,
items: groupedBy[key]
.map((item: any) => ({
name: `${item.salutation} ${
item.name
} ${item.surname.toUpperCase()}`,
name: `${item.salutation} ${item.name} ${(
item.surname ?? ''
).toUpperCase()}`,
role: item.role,
position: item.position,
email: item.email,
Expand Down

0 comments on commit 780aab2

Please sign in to comment.