aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Content.tsx
diff options
context:
space:
mode:
authorankit-thanekar007 <ankit.thanekar007@gmail.com>2021-04-22 16:44:48 -0700
committerankit-thanekar007 <ankit.thanekar007@gmail.com>2021-04-22 16:44:48 -0700
commitdd0ccf25aaec5d0ef4a9e8a38e97cd8b03bad0a1 (patch)
tree182e4ecd75668b1ff62f435d88c35aa5c63e36fb /src/components/profile/Content.tsx
parent1f04e445e9d317bc141624a440a2c1e55f8704b3 (diff)
Private Hotifix
Diffstat (limited to 'src/components/profile/Content.tsx')
-rw-r--r--src/components/profile/Content.tsx8
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
{...{