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.
1 parent 1eb7ea4 commit 48fa931Copy full SHA for 48fa931
src/ui/pages/profile/ManageProfile.page.tsx
@@ -31,7 +31,9 @@ export const ManageProfilePage: React.FC = () => {
31
const normalizedName = transformCommaSeperatedName(enhanced.displayName || '');
32
const extractedFirstName = enhanced.givenName || normalizedName.split(' ')[0];
33
let extractedLastName = enhanced.surname || normalizedName.split(' ')[1];
34
- extractedLastName = extractedLastName.slice(1, extractedLastName.length);
+ if (!enhanced.surname) {
35
+ extractedLastName = extractedLastName.slice(1, extractedLastName.length);
36
+ }
37
return {
38
...enhanced,
39
displayName: normalizedName,
0 commit comments