diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-22 19:53:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-22 19:53:41 -0400 |
commit | 5d1ee0fd2f6bbb2493a32c2f60f4ddccea9a1fc7 (patch) | |
tree | 182e4ecd75668b1ff62f435d88c35aa5c63e36fb /src/components/profile/Content.tsx | |
parent | 1f04e445e9d317bc141624a440a2c1e55f8704b3 (diff) | |
parent | dd0ccf25aaec5d0ef4a9e8a38e97cd8b03bad0a1 (diff) |
Merge pull request #383 from ankit-thanekar007/tma-794-private-hotfix
[NOJIRA] : Badge View Private Fix
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r-- | src/components/profile/Content.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/profile/Content.tsx b/src/components/profile/Content.tsx index c70d6df5..8298dc9a 100644 --- a/src/components/profile/Content.tsx +++ b/src/components/profile/Content.tsx @@ -145,7 +145,13 @@ const Content: React.FC<ContentProps> = ({userXId, screenType}) => { <Cover {...{userXId, screenType}} /> <ProfileCutout /> <ProfileHeader - {...{userXId, screenType, handleBlockUnblock, isBlocked}} + {...{ + userXId, + screenType, + handleBlockUnblock, + isBlocked, + isPrivate: !canViewProfile(state, userXId, screenType), + }} /> <ProfileBody {...{ |