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 SectionHeaderContent = (props) => {
|
||||||
const {profile, history, userType} = props;
|
const {profile, history, userType} = props;
|
||||||
|
|
||||||
const headerText = profile
|
const headerText = profile && profile.displayName
|
||||||
? profile.userName
|
? profile.displayName
|
||||||
: userType === "user"
|
: userType === "user"
|
||||||
? "New employee"
|
? "New employee"
|
||||||
: "New guest";
|
: "New guest";
|
||||||
|
Loading…
Reference in New Issue
Block a user