File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
apps/sensenet/src/components/appbar
packages/sn-auth-react/src/models Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -128,10 +128,8 @@ export const DesktopNavMenu: FunctionComponent = () => {
128128 service . setPersonalSettingsValue ( { ...settings , preferDisplayName : event . target . checked } )
129129 }
130130
131- let DomainAndLoginName = ''
132- if ( user ?. Domain && user ?. LoginName ) {
133- DomainAndLoginName = `${ user ?. Domain } \\${ user ?. LoginName } `
134- }
131+ const DomainAndLoginName =
132+ user ?. Domain && user ?. Domain !== '' ? `${ user ?. Domain } \\${ user ?. LoginName } ` : user ?. LoginName
135133
136134 return (
137135 < div className = { clsx ( globalClasses . centered , classes . navMenu ) } >
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export interface User {
33 Path : string
44 FullName : string
55 LoginName : string
6+ Domain : string
67 Avatar : Avatar
78 DisplayName : string
89 Name : string
You can’t perform that action at this time.
0 commit comments