web: People: ProfileAction: fixed header text
This commit is contained in:
parent
eaeb0d6bf5
commit
d8a526a693
@ -16,8 +16,8 @@ const textStyle = {
|
||||
const SectionHeaderContent = (props) => {
|
||||
const {profile, history, userType} = props;
|
||||
|
||||
const headerText = profile
|
||||
? profile.userName
|
||||
const headerText = profile && profile.displayName
|
||||
? profile.displayName
|
||||
: userType === "user"
|
||||
? "New employee"
|
||||
: "New guest";
|
||||
|
Loading…
Reference in New Issue
Block a user