diff --git a/spiffworkflow-frontend/src/components/NavigationBar.tsx b/spiffworkflow-frontend/src/components/NavigationBar.tsx index 54064dc1..b9301d9f 100644 --- a/spiffworkflow-frontend/src/components/NavigationBar.tsx +++ b/spiffworkflow-frontend/src/components/NavigationBar.tsx @@ -97,6 +97,9 @@ export default function NavigationBar() { aboutLinkElement = About; } + const userEmail = UserService.getUserEmail(); + const username = UserService.getPreferredUsername(); + const profileToggletip = (
@@ -105,15 +108,13 @@ export default function NavigationBar() { className="user-profile-toggletip-button" type="button" > -
- {UserService.getPreferredUsername()[0].toUpperCase()} -
+
{username[0].toUpperCase()}

- {UserService.getPreferredUsername()} + {username}

-

{UserService.getUserEmail()}

+ {username !== userEmail &&

{userEmail}

}
{aboutLinkElement}