diff --git a/client/src/components/profile/Profile.js b/client/src/components/profile/Profile.js index 8b6db449e3..272c200182 100644 --- a/client/src/components/profile/Profile.js +++ b/client/src/components/profile/Profile.js @@ -54,7 +54,7 @@ function TakeMeToTheChallenges() { return Take me to the Challenges; } -function renderIsLocked(username) { +function renderIsLocked(username, isSessionUser) { return ( @@ -62,6 +62,7 @@ function renderIsLocked(username) { + {isSessionUser ? renderSettingsButton() : null}

{username} has not made their profile public. @@ -132,7 +133,7 @@ function Profile({ user, isSessionUser }) { } = user; if (isLocked) { - return renderIsLocked(username); + return renderIsLocked(username, isSessionUser); } return (