We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84337d3 + 93f8145 commit 4aa48f2Copy full SHA for 4aa48f2
packages/client/src/utils/data-formatting.ts
@@ -95,9 +95,9 @@ export function getLocalisedName(
95
): string {
96
return intl
97
.formatMessage(constantsMessages.humanName, {
98
- firstName: nameObject.firstNames,
99
- middleName: nameObject.middleName,
100
- lastName: nameObject.familyName
+ firstName: nameObject?.firstNames,
+ middleName: nameObject?.middleName,
+ lastName: nameObject?.familyName
101
})
102
.replace(/\s+/g, ' ') // Remove extra spaces
103
.trim()
0 commit comments