web: People: ProfileAction: fixed header text

This commit is contained in:
Andrey Savihin 2019-07-26 11:05:36 +03:00
parent eaeb0d6bf5
commit d8a526a693

View File

@ -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";